diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-01 20:30:22 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-01 20:30:22 +0800 |
commit | 8325c783acac8a0eaf80395e1201bbfd3a4829bb (patch) | |
tree | 1bede3b8edceba2a4dbd565fdca34989f24f5d49 /net-im | |
parent | d222516fd9b82aa687202d34b8cc30b11700dada (diff) | |
download | freebsd-ports-gnome-8325c783acac8a0eaf80395e1201bbfd3a4829bb.tar.gz freebsd-ports-gnome-8325c783acac8a0eaf80395e1201bbfd3a4829bb.tar.zst freebsd-ports-gnome-8325c783acac8a0eaf80395e1201bbfd3a4829bb.zip |
net-im/jabber: unbreak with clang 4.0
mod_privacy.cc:1168:19: error: ordered comparison between pointer and zero ('xmlnode_list_item'
(aka 'xmlnode_list_item_t *') and 'int')
if (new_items <= 0) {
~~~~~~~~~ ^ ~
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/jabber/files/patch-jsm_modules_mod__privacy.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-im/jabber/files/patch-jsm_modules_mod__privacy.cc b/net-im/jabber/files/patch-jsm_modules_mod__privacy.cc new file mode 100644 index 000000000000..5be19d309b0f --- /dev/null +++ b/net-im/jabber/files/patch-jsm_modules_mod__privacy.cc @@ -0,0 +1,11 @@ +--- jsm/modules/mod_privacy.cc.orig 2007-04-07 19:43:18 UTC ++++ jsm/modules/mod_privacy.cc +@@ -1165,7 +1165,7 @@ static mreturn mod_privacy_out_iq_set_li + list_items++; + } + +- if (new_items <= 0) { ++ if (new_items == NULL) { + log_debug2(ZONE, LOGT_EXECFLOW, "This is a deletion request"); + } + |