Mercurial > pidgin
changeset 27229:47c0795eb4fd
We shouldn't de-reference variables before checking if they're not NULL.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 02 Jul 2009 01:30:41 +0000 |
parents | 801e54fde3df |
children | 75acd9ad14be |
files | libpurple/protocols/msn/state.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/state.c Wed Jul 01 03:13:50 2009 +0000 +++ b/libpurple/protocols/msn/state.c Thu Jul 02 01:30:41 2009 +0000 @@ -249,7 +249,7 @@ void msn_set_psm(MsnSession *session) { - PurpleAccount *account = session->account; + PurpleAccount *account; PurplePresence *presence; PurpleStatus *status; MsnCmdProc *cmdproc; @@ -261,6 +261,7 @@ g_return_if_fail(session != NULL); g_return_if_fail(session->notification != NULL); + account = session->account; cmdproc = session->notification->cmdproc; /* Get the PSM string from Purple's Status Line */