summaryrefslogtreecommitdiff
path: root/x11-wm/fluxbox/files/patch-util_fluxbox-remote.cc
blob: d8bd9bce6a6e479c7dc2ef088bdf12fe2b26012b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Upstream fix for bogus pointer comparison:
Issue:  https://sourceforge.net/p/fluxbox/bugs/1138/ 
Commit: http://git.fluxbox.org/fluxbox.git/commit/util/fluxbox-remote.cc?id=22866c4d30f5b289c429c5ca88d800200db4fc4f

--- util/fluxbox-remote.cc.orig	2015-02-08 10:44:45 UTC
+++ util/fluxbox-remote.cc
@@ -73,7 +73,7 @@ int main(int argc, char **argv) {
     if (strcmp(cmd, "result") == 0) {
         XTextProperty text_prop;
         if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
-            && text_prop.value > 0
+            && text_prop.value != 0
             && text_prop.nitems > 0) {
 
             printf("%s", text_prop.value);