diff options
author | joerg <joerg@pkgsrc.org> | 2017-03-07 13:22:27 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2017-03-07 13:22:27 +0000 |
commit | d0a3410a0781fc12c84468bccb1dadda495c33dd (patch) | |
tree | a3b676ba4ec3edb45f1df161f595f4b16e2addde /wm | |
parent | d69f2db8763b470d424f28733d85f672df4ca170 (diff) | |
download | pkgsrc-d0a3410a0781fc12c84468bccb1dadda495c33dd.tar.gz |
Do not compare pointers with 0.
Diffstat (limited to 'wm')
-rw-r--r-- | wm/fluxbox/distinfo | 3 | ||||
-rw-r--r-- | wm/fluxbox/patches/patch-util_fluxbox-remote.cc | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/wm/fluxbox/distinfo b/wm/fluxbox/distinfo index ad15d4f3684..fb540bb4225 100644 --- a/wm/fluxbox/distinfo +++ b/wm/fluxbox/distinfo @@ -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 @@ -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 diff --git a/wm/fluxbox/patches/patch-util_fluxbox-remote.cc b/wm/fluxbox/patches/patch-util_fluxbox-remote.cc new file mode 100644 index 00000000000..ee7cf2459ce --- /dev/null +++ b/wm/fluxbox/patches/patch-util_fluxbox-remote.cc @@ -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); |