pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/wm/fluxbox Do not compare pointers with 0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/39a66b23169d
branches:  trunk
changeset: 359333:39a66b23169d
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Mar 07 13:22:27 2017 +0000

description:
Do not compare pointers with 0.

diffstat:

 wm/fluxbox/distinfo                             |   3 ++-
 wm/fluxbox/patches/patch-util_fluxbox-remote.cc |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r d7857a059ca4 -r 39a66b23169d wm/fluxbox/distinfo
--- a/wm/fluxbox/distinfo       Tue Mar 07 13:21:10 2017 +0000
+++ b/wm/fluxbox/distinfo       Tue Mar 07 13:22:27 2017 +0000
@@ -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-bj) = 9b0ac35028644b142073a498bc3d59324c51d349
 SHA1 (patch-bk) = ae0c9857dd0cd203c8ae3f4bf5a0c7126cf48c92
 SHA1 (patch-src_fluxbox.cc) = a652d685cd80896b45bfa7b2dfd5e98b2561e326
+SHA1 (patch-util_fluxbox-remote.cc) = fa2389ad36f41a6080a43ad1755cd5ad904a27cf
diff -r d7857a059ca4 -r 39a66b23169d wm/fluxbox/patches/patch-util_fluxbox-remote.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/fluxbox/patches/patch-util_fluxbox-remote.cc   Tue Mar 07 13:22:27 2017 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index