Minor simplification in safe_strcmp_filename().
authorTor Lillqvist <tml@src.gnome.org>
Mon, 1 Aug 2005 19:25:37 +0000 (19:25 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Mon, 1 Aug 2005 19:25:37 +0000 (19:25 +0000)
tests/uri-test.c

index 0ecfda9..c0f21b0 100644 (file)
@@ -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)