Fix an error caused by misreading purple_strequal()

Tue, 05 Nov 2019 22:24:18 -0500

author
John Bailey <rekkanoryo@rekkanoryo.org>
date
Tue, 05 Nov 2019 22:24:18 -0500
changeset 40157
e74e34093dfa
parent 40156
f756870e6bf5
child 40158
360997c25b1a

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:22:01 2019 -0500
+++ b/libpurple/protocols/jabber/si.c	Tue Nov 05 22:24:18 2019 -0500
@@ -372,7 +372,7 @@
 				(port = purple_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