From: Tor Lillqvist Date: Mon, 1 Aug 2005 19:25:37 +0000 (+0000) Subject: Minor simplification in safe_strcmp_filename(). X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=7787e71d8b5ebc413790a87148a649050f096096;p=dana%2Fcg-glib.git Minor simplification in safe_strcmp_filename(). --- diff --git a/tests/uri-test.c b/tests/uri-test.c index 0ecfda9b..c0f21b05 100644 --- a/tests/uri-test.c +++ b/tests/uri-test.c @@ -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)