pidgin: 76f13d0f: These strcmp checks are for equality, me...

qulogic at pidgin.im qulogic at pidgin.im
Sat Jun 6 21:25:47 EDT 2009


-----------------------------------------------------------------
Revision: 76f13d0fc7fbff369d01187fcc1b8f517854e119
Ancestor: ceade0073943f8f16f5ecfc59da0c306eabf4f42
Author: qulogic at pidgin.im
Date: 2009-06-07T01:21:36
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/76f13d0fc7fbff369d01187fcc1b8f517854e119

Modified files:
        libpurple/protocols/msn/state.c

ChangeLog: 

These strcmp checks are for equality, meaning a return of 0.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/state.c	a1283981a9ac9ce4a93e84e10f42d885cc247684
+++ libpurple/protocols/msn/state.c	ef2431e1f5f7c9ba6d82a7a635eb4dd1f1903e7d
@@ -305,9 +305,9 @@ msn_change_status(MsnSession *session)
 			if (strcmp(client_type, "phone") == 0 ||
 				strcmp(client_type, "handheld") == 0) {
 				caps |= MSN_CLIENT_CAP_WIN_MOBILE;
-			} else if (strcmp(client_type, "web")) {
+			} else if (strcmp(client_type, "web") == 0) {
 				caps |= MSN_CLIENT_CAP_WEBMSGR;
-			} else if (strcmp(client_type, "bot")) {
+			} else if (strcmp(client_type, "bot") == 0) {
 				caps |= MSN_CLIENT_CAP_BOT;
 			}
 			/* MSN doesn't a "console" type... 


More information about the Commits mailing list