Mercurial > pidgin
changeset 13437:4bfb720a8fc2
[gaim-migrate @ 15812]
Another case where we're checking for a gc == NULL condition, but not properly handling it.
Resolves CID 23
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 07 Mar 2006 07:22:09 +0000 |
parents | a04ebe46930a |
children | 068282089843 |
files | src/protocols/irc/irc.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/irc/irc.c Tue Mar 07 07:17:39 2006 +0000 +++ b/src/protocols/irc/irc.c Tue Mar 07 07:22:09 2006 +0000 @@ -502,12 +502,12 @@ static void irc_set_status(GaimAccount *account, GaimStatus *status) { GaimConnection *gc = gaim_account_get_connection(account); - struct irc_conn *irc = NULL; + struct irc_conn *irc; const char *args[1]; const char *status_id = gaim_status_get_id(status); - if (gc) - irc = gc->proto_data; + g_return_if_fail(gc != NULL); + irc = gc->proto_data; if (!gaim_status_is_active(status)) return;