projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccaf88e
)
psppire-window: Avoid writing null pointer constant as '\0'.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 24 Sep 2017 02:46:12 +0000
(19:46 -0700)
committer
Ben 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
patch
|
blob
|
history
diff --git
a/src/ui/gui/psppire-window.c
b/src/ui/gui/psppire-window.c
index fa3b250fa50fa3d2e1e4306ce6c1448a70f90536..8b2e3d5dfd7ef231e27b79f13c2229f591055e52 100644
(file)
--- a/
src/ui/gui/psppire-window.c
+++ b/
src/ui/gui/psppire-window.c
@@
-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 */