# HG changeset patch # User Elliott Sales de Andrade # Date 1219717457 0 # Node ID 169c1451b7e5d1a1281affed1d33851caf3b3230 # Parent 60de5d1ee482a5cfaf1b230b5130dda3d210189d Don't crash if user == NULL in a couple more places. Not exactly the real cause, but fixes #6777. diff -r 60de5d1ee482 -r 169c1451b7e5 libpurple/protocols/msn/user.c --- a/libpurple/protocols/msn/user.c Thu Aug 21 06:46:19 2008 +0000 +++ b/libpurple/protocols/msn/user.c Tue Aug 26 02:24:17 2008 +0000 @@ -84,6 +84,8 @@ PurpleAccount *account; gboolean offline; + g_return_if_fail(user != NULL); + account = user->userlist->session->account; offline = (user->status == NULL); @@ -125,6 +127,8 @@ { const char *status; + g_return_if_fail(user != NULL); + if (state == NULL) { user->status = NULL; return; @@ -282,7 +286,7 @@ { PurpleBuddy *buddy; - buddy =purple_find_buddy(account,name); + buddy = purple_find_buddy(account, name); return PURPLE_BUDDY_IS_ONLINE(buddy); }