Mercurial > pidgin.yaz
diff libpurple/protocols/mxit/protocol.c @ 31957:67c2d695e8d5
Move the PIN-change option into a separate PluginAction.
author | andrew.victor@mxit.com |
---|---|
date | Mon, 11 Apr 2011 22:16:34 +0000 |
parents | cce18a0ff43a |
children | 2e4ac25df4ba |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/protocol.c Mon Apr 11 21:28:33 2011 +0000 +++ b/libpurple/protocols/mxit/protocol.c Mon Apr 11 22:16:34 2011 +0000 @@ -853,11 +853,12 @@ void mxit_send_extprofile_update( struct MXitSession* session, const char* password, unsigned int nr_attrib, const char* attributes ) { char data[CP_MAX_PACKET]; - gchar** parts; + gchar** parts = NULL; int datalen; unsigned int i; - parts = g_strsplit( attributes, "\01", 1 + ( nr_attrib * 3 ) ); + if ( attributes ) + parts = g_strsplit( attributes, "\01", 1 + ( nr_attrib * 3 ) ); /* convert the packet to a byte stream */ datalen = snprintf( data, sizeof( data ),