Minor simplification in safe_strcmp_filename().

This commit is contained in:
Tor Lillqvist 2005-08-01 19:25:37 +00:00
parent 7aa2e37f5e
commit 7787e71d8b

View File

@ -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)