forked from jsonn/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
joerg
committed
Mar 7, 2017
1 parent
69c038f
commit f44f9ce
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$NetBSD: patch-util_fluxbox-remote.cc,v 1.1 2017/03/07 13:22:28 joerg Exp $ | ||
|
||
--- util/fluxbox-remote.cc.orig 2017-02-28 00:35:38.013459100 +0000 | ||
+++ 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 | ||
&& text_prop.nitems > 0) { | ||
|
||
printf("%s", text_prop.value); |