libpurple/protocols/gg/lib/events.c

branch
string-comparison-r2
changeset 38259
c593fc9f5438
parent 36284
20467cdcdbdd
child 38601
e0a7ee3692a6
--- a/libpurple/protocols/gg/lib/events.c	Thu Mar 23 21:01:15 2017 +0300
+++ b/libpurple/protocols/gg/lib/events.c	Fri Mar 24 02:23:46 2017 +0300
@@ -1087,7 +1087,7 @@
 		port = atoi(tmp + 1);
 	}
 
-	if (strcmp(host, "notoperating") == 0) {
+	if (purple_strequal(host, "notoperating")) {
 		gg_debug_session(sess, GG_DEBUG_MISC, "// gg_watch_fd() service unavailable\n");
 		e->event.failure = GG_FAILURE_UNAVAILABLE;
 		return GG_ACTION_FAIL;

mercurial