im.pidgin.pidgin: 13f45bf6a01b335f1aab289df1d230cef05c1cef

datallah at pidgin.im datallah at pidgin.im
Tue Oct 9 19:50:52 EDT 2007


-----------------------------------------------------------------
Revision: 13f45bf6a01b335f1aab289df1d230cef05c1cef
Ancestor: 1db95e01e8e298228b51785adeb7dbeeaf36e472
Author: datallah at pidgin.im
Date: 2007-10-09T23:39:30
Branch: im.pidgin.pidgin

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

ChangeLog: 

Prevent null pointer deref to fix CID 349. I don't think this is possible, but I suppose it may happen with a different UI.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/msn.c	5f96bcb3d76877e151067c964f80c63564ed32aa
+++ libpurple/protocols/msn/msn.c	1f9100b53886abb18c13b62fa62d9d5980288979
@@ -943,7 +943,7 @@ msn_send_im(PurpleConnection *gc, const 
 			imdata->msg = body_str;
 			imdata->flags = flags;
 			imdata->when = time(NULL);
-			g_idle_add(msn_send_me_im, imdata);
+			purple_timeout_add(0, msn_send_me_im, imdata);
 		}
 
 		msn_message_destroy(msg);
@@ -1103,7 +1103,7 @@ msn_add_buddy(PurpleConnection *gc, Purp
 	userlist = session->userlist;
 	who = msn_normalize(gc->account, buddy->name);
 
-	purple_debug_info("MSN","Add user:%s to group:%s\n", who, group->name);
+	purple_debug_info("MSN","Add user:%s to group:%s\n", who, (group && group->name) ? group->name : "(null)");
 	if (!session->logged_in)
 	{
 #if 0


More information about the Commits mailing list