mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Minor simplification in safe_strcmp_filename().
This commit is contained in:
parent
7aa2e37f5e
commit
7787e71d8b
@ -317,10 +317,8 @@ safe_strcmp_filename (const gchar *a, const gchar *b)
|
|||||||
#ifndef G_OS_WIN32
|
#ifndef G_OS_WIN32
|
||||||
return safe_strcmp (a, b);
|
return safe_strcmp (a, b);
|
||||||
#else
|
#else
|
||||||
if (!a)
|
if (!a || !b)
|
||||||
return safe_strcmp ("", b);
|
return safe_strcmp (a, b);
|
||||||
else if (!b)
|
|
||||||
return safe_strcmp (a, "");
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
while (*a && *b)
|
while (*a && *b)
|
||||||
|
Loading…
Reference in New Issue
Block a user