Revision: 17623
http://svn.sourceforge.net/gaim/?rev=17623&view=rev
Author: thekingant
Date: 2006-10-29 19:40:56 -0800 (Sun, 29 Oct 2006)
Log Message:
-----------
Should fix a rare MSN crash that Evan pointed out on the gaim-devel
mailing list on 6 Oct 2006
Modified Paths:
--------------
trunk/libgaim/protocols/msn/command.c
Modified: trunk/libgaim/protocols/msn/command.c
===================================================================
--- trunk/libgaim/protocols/msn/command.c 2006-10-30 00:40:19 UTC (rev 17622)
+++ trunk/libgaim/protocols/msn/command.c 2006-10-30 03:40:56 UTC (rev 17623)
@@ -53,12 +53,15 @@
if (param_start)
{
+ *param_start++ = '\0';
+ cmd->params = g_strsplit(param_start, " ", 0);
+ }
+
+ if (cmd->params != NULL)
+ {
char *param;
int c;
- *param_start++ = '\0';
- cmd->params = g_strsplit(param_start, " ", 0);
-
for (c = 0; cmd->params[c]; c++);
cmd->param_count = c;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|