7c4fcee
diff --git a/util/fluxbox-remote.cc b/util/fluxbox-remote.cc
7c4fcee
index 59852e6..504015b 100644
7c4fcee
--- util/fluxbox-remote.cc
7c4fcee
+++ util/fluxbox-remote.cc
7c4fcee
@@ -73,7 +73,7 @@ int main(int argc, char **argv) {
7c4fcee
     if (strcmp(cmd, "result") == 0) {
7c4fcee
         XTextProperty text_prop;
7c4fcee
         if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
7c4fcee
-            && text_prop.value > 0
7c4fcee
+            && text_prop.value != 0
7c4fcee
             && text_prop.nitems > 0) {
7c4fcee
 
7c4fcee
             printf("%s", text_prop.value);