View | Details | Raw Unified | Return to bug 216176 | Differences between
and this patch

Collapse All | Expand All

(-)x11-wm/fluxbox/files/patch-util_fluxbox-remote.cc (+15 lines)
Line 0 Link Here
1
Update fix for bogus pointer comparison:
2
Issue:  https://sourceforge.net/p/fluxbox/bugs/1138/ 
3
Commit: http://git.fluxbox.org/fluxbox.git/commit/util/fluxbox-remote.cc?id=22866c4d30f5b289c429c5ca88d800200db4fc4f
4
5
--- util/fluxbox-remote.cc.orig	2015-02-08 10:44:45 UTC
6
+++ util/fluxbox-remote.cc
7
@@ -73,7 +73,7 @@ int main(int argc, char **argv) {
8
     if (strcmp(cmd, "result") == 0) {
9
         XTextProperty text_prop;
10
         if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
11
-            && text_prop.value > 0
12
+            && text_prop.value != 0
13
             && text_prop.nitems > 0) {
14
 
15
             printf("%s", text_prop.value);

Return to bug 216176