[Xfce4-commits] r30332 - libexo/trunk/exo

Nick Schermer nick at xfce.org
Thu Jul 16 23:30:25 CEST 2009


Author: nick
Date: 2009-07-16 21:30:25 +0000 (Thu, 16 Jul 2009)
New Revision: 30332

Modified:
   libexo/trunk/exo/exo-string.c
Log:
Small optimization in exo_str_is_equal.


Modified: libexo/trunk/exo/exo-string.c
===================================================================
--- libexo/trunk/exo/exo-string.c	2009-07-16 20:22:46 UTC (rev 30331)
+++ libexo/trunk/exo/exo-string.c	2009-07-16 21:30:25 UTC (rev 30332)
@@ -93,10 +93,8 @@
 exo_str_is_equal (const gchar *a,
                   const gchar *b)
 {
-  if (a == NULL && b == NULL)
-    return TRUE;
-  else if (a == NULL || b == NULL)
-    return FALSE;
+  if (a == NULL || b == NULL)
+    return (a == b);
 
   while (*a == *b++)
     if (*a++ == '\0')




More information about the Xfce4-commits mailing list