mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-25 05:26: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
|
||||
return safe_strcmp (a, b);
|
||||
#else
|
||||
if (!a)
|
||||
return safe_strcmp ("", b);
|
||||
else if (!b)
|
||||
return safe_strcmp (a, "");
|
||||
if (!a || !b)
|
||||
return safe_strcmp (a, b);
|
||||
else
|
||||
{
|
||||
while (*a && *b)
|
||||
|
Loading…
Reference in New Issue
Block a user