psppire-window: Avoid writing null pointer constant as '\0'.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 24 Sep 2017 02:46:12 +0000 (19:46 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 24 Sep 2017 02:46:12 +0000 (19:46 -0700)
Found by GCC 7.2.

src/ui/gui/psppire-window.c

index fa3b250fa50fa3d2e1e4306ce6c1448a70f90536..8b2e3d5dfd7ef231e27b79f13c2229f591055e52 100644 (file)
@@ -99,7 +99,7 @@ psppire_window_set_title (PsppireWindow *window)
       if (window->basename)
         g_string_append_printf (title, "%s ", window->basename);
 
-      if (window->id != '\0')
+      if (window->id)
         g_string_append_printf (title, "[%s] ", window->id);
 
       g_string_append_unichar (title, 0x2014); /* em dash */