[gnome-builder] macros: fix logic bomb



commit 755423aaeedd59511b1783fc53dcecbc920a1790
Author: Christian Hergert <christian hergert me>
Date:   Sun May 3 14:37:14 2015 -0700

    macros: fix logic bomb

 libide/ide-macros.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-macros.h b/libide/ide-macros.h
index dc746e7..9617128 100644
--- a/libide/ide-macros.h
+++ b/libide/ide-macros.h
@@ -40,7 +40,7 @@ G_BEGIN_DECLS
 static inline gboolean
 ide_str_empty0 (const gchar *str)
 {
-  return (str != NULL) && (str[0] != '\0');
+  return (str == NULL) || (str[0] == '\0');
 }
 
 static inline gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]