Package: irssi-plugin-xmpp / 0.54-3

comparison-between-pointer-and-zero-character-constant.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Descirption: fix a "comparison between pointer and zero character constant" warning
Author: Florian Schlichting <fsfs@debian.org>

--- a/src/core/xep/disco.c
+++ b/src/core/xep/disco.c
@@ -69,7 +69,7 @@
 	char *recoded;
 
 	g_return_if_fail(IS_XMPP_SERVER(server));
-	g_return_if_fail(dest != NULL && dest != '\0');
+	g_return_if_fail(dest != NULL && *dest != '\0');
 	recoded = xmpp_recode_out(dest);
 	lmsg = lm_message_new_with_sub_type(recoded, LM_MESSAGE_TYPE_IQ,
 	    LM_MESSAGE_SUB_TYPE_GET);