cpw.qulogic.msn: 0cbcb7f9: Also commit the change from b062f14d1bcd...

qulogic at pidgin.im qulogic at pidgin.im
Sat Jul 12 03:36:02 EDT 2008


-----------------------------------------------------------------
Revision: 0cbcb7f910c95c3dac3f06c404e29dcc8b709419
Ancestor: b062f14d1bcd8e6c28b2b05977aa19a4bfd4867c
Author: qulogic at pidgin.im
Date: 2008-07-12T07:29:38
Branch: im.pidgin.cpw.qulogic.msn
URL: http://d.pidgin.im/viewmtn/revision/info/0cbcb7f910c95c3dac3f06c404e29dcc8b709419

Modified files:
        libpurple/protocols/msnp9/command.c

ChangeLog: 

Also commit the change from b062f14d1bcd8e6c28b2b05977aa19a4bfd4867c to 
the msnp9 version.

References #5545.

-------------- next part --------------
============================================================
--- libpurple/protocols/msnp9/command.c	101a5c45600bfd0151f5a1c2f8f683df92e58288
+++ libpurple/protocols/msnp9/command.c	63a1cbdd8bf499a1ae39a4abcf012deef631e33e
@@ -65,9 +65,12 @@ msn_command_from_string(const char *stri
 		for (c = 0; cmd->params[c]; c++);
 		cmd->param_count = c;
 
-		param = cmd->params[0];
-
-		cmd->trId = is_num(param) ? atoi(param) : 0;
+		if (cmd->param_count) {
+			char *param = cmd->params[0];
+			cmd->trId = is_num(param) ? atoi(param) : 0;
+		} else {
+			cmd->trId = 0;
+		}
 	}
 	else
 		cmd->trId = 0;


More information about the Commits mailing list