# HG changeset patch # User Richard Laager # Date 1141716129 0 # Node ID 4bfb720a8fc22e5128bc7c090350c0165017f5c4 # Parent a04ebe46930adb9585341ca97a59c15648b570b3 [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 diff -r a04ebe46930a -r 4bfb720a8fc2 src/protocols/irc/irc.c --- 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;