changeset 22247:5ffb0b5f785f

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.
author Will Thompson <will.thompson@collabora.co.uk>
date Fri, 01 Feb 2008 19:35:38 +0000
parents ee80c4ab91ee
children 88796aff14d6
files libpurple/protocols/msnp9/user.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/user.c	Fri Feb 01 17:48:53 2008 +0000
+++ b/libpurple/protocols/msnp9/user.c	Fri Feb 01 19:35:38 2008 +0000
@@ -36,7 +36,8 @@
 	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;
 }