im.pidgin.pidgin: 040eda39d04e967c5904d63394086090b449dd17

resiak at soc.pidgin.im resiak at soc.pidgin.im
Fri Feb 1 14:40:48 EST 2008


-----------------------------------------------------------------
Revision: 040eda39d04e967c5904d63394086090b449dd17
Ancestor: 796a61ac575e44a9b6cc29a27df3d34ad52e627b
Author: resiak at soc.pidgin.im
Date: 2008-02-01T19:35:38
Branch: im.pidgin.pidgin

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

ChangeLog: 

Passing NULL to msn_user_set_friendly_name explodes, and msn_user_new is called
by session.c with friendly_name unconditionally NULL, so I have no idea why
this ever worked.

-------------- next part --------------
============================================================
--- libpurple/protocols/msnp9/user.c	92a67c2d9914c87de46146f76f97a1bd8fed8258
+++ libpurple/protocols/msnp9/user.c	58a59bd522734e7d219a276ce4ee6311a2982c42
@@ -36,7 +36,8 @@ msn_user_new(MsnUserList *userlist, cons
 	user->userlist = userlist;
 
 	msn_user_set_passport(user, passport);
-	msn_user_set_friendly_name(user, friendly_name);
+	if (friendly_name != NULL)
+		msn_user_set_friendly_name(user, friendly_name);
 
 	return user;
 }


More information about the Commits mailing list