Skip to content

Commit

Permalink
Do not compare pointers with 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg committed Mar 7, 2017
1 parent 69c038f commit f44f9ce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wm/fluxbox/distinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.34 2017/02/22 12:20:51 wiz Exp $
$NetBSD: distinfo,v 1.35 2017/03/07 13:22:27 joerg Exp $

SHA1 (fluxbox-1.3.7.tar.bz2) = f8939f43b4c353ebef5fec2b95e8cbfd3cd5ac4d
RMD160 (fluxbox-1.3.7.tar.bz2) = efb8d458edf2b429fb2999eb184ab3aed6a54f7a
Expand All @@ -13,3 +13,4 @@ SHA1 (patch-bg) = 8f4decdb2ff611dcc1af64145801fac35f83e25a
SHA1 (patch-bj) = 9b0ac35028644b142073a498bc3d59324c51d349
SHA1 (patch-bk) = ae0c9857dd0cd203c8ae3f4bf5a0c7126cf48c92
SHA1 (patch-src_fluxbox.cc) = a652d685cd80896b45bfa7b2dfd5e98b2561e326
SHA1 (patch-util_fluxbox-remote.cc) = fa2389ad36f41a6080a43ad1755cd5ad904a27cf
13 changes: 13 additions & 0 deletions wm/fluxbox/patches/patch-util_fluxbox-remote.cc
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);

0 comments on commit f44f9ce

Please sign in to comment.