comparison libpurple/protocols/msnp9/user.c @ 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 b08d0296ab88
children 981a0bfc3d9d
comparison
equal deleted inserted replaced
22246:ee80c4ab91ee 22247:5ffb0b5f785f
34 user = g_new0(MsnUser, 1); 34 user = g_new0(MsnUser, 1);
35 35
36 user->userlist = userlist; 36 user->userlist = userlist;
37 37
38 msn_user_set_passport(user, passport); 38 msn_user_set_passport(user, passport);
39 msn_user_set_friendly_name(user, friendly_name); 39 if (friendly_name != NULL)
40 msn_user_set_friendly_name(user, friendly_name);
40 41
41 return user; 42 return user;
42 } 43 }
43 44
44 void 45 void