Fix an error caused by misreading purple_strequal() release-2.x.y

Tue, 05 Nov 2019 22:26:27 -0500

author
John Bailey <rekkanoryo@rekkanoryo.org>
date
Tue, 05 Nov 2019 22:26:27 -0500
branch
release-2.x.y
changeset 40153
60fbcaffa69a
parent 40152
21c032e12ec4
child 40154
7ab560390e2f

Fix an error caused by misreading purple_strequal()

libpurple/protocols/jabber/si.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/jabber/si.c	Tue Nov 05 21:16:31 2019 -0500
+++ b/libpurple/protocols/jabber/si.c	Tue Nov 05 22:26:27 2019 -0500
@@ -357,7 +357,7 @@
 				(port = xmlnode_get_attrib(streamhost, "port")) &&
 				(portnum = atoi(port))))) {
 			/* ignore 0.0.0.0 */
-			if(purple_strequal(host, "0.0.0.0") != 0) {
+			if(purple_strequal(host, "0.0.0.0") == FALSE) {
 				JabberBytestreamsStreamhost *sh = g_new0(JabberBytestreamsStreamhost, 1);
 				sh->jid = g_strdup(jid);
 				sh->host = g_strdup(host);

mercurial