Mercurial > pidgin
comparison src/protocols/irc/irc.c @ 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 | 263c2db78f77 |
| children | 10e8eb6a4910 |
comparison
equal
deleted
inserted
replaced
| 13436:a04ebe46930a | 13437:4bfb720a8fc2 |
|---|---|
| 500 } | 500 } |
| 501 | 501 |
| 502 static void irc_set_status(GaimAccount *account, GaimStatus *status) | 502 static void irc_set_status(GaimAccount *account, GaimStatus *status) |
| 503 { | 503 { |
| 504 GaimConnection *gc = gaim_account_get_connection(account); | 504 GaimConnection *gc = gaim_account_get_connection(account); |
| 505 struct irc_conn *irc = NULL; | 505 struct irc_conn *irc; |
| 506 const char *args[1]; | 506 const char *args[1]; |
| 507 const char *status_id = gaim_status_get_id(status); | 507 const char *status_id = gaim_status_get_id(status); |
| 508 | 508 |
| 509 if (gc) | 509 g_return_if_fail(gc != NULL); |
| 510 irc = gc->proto_data; | 510 irc = gc->proto_data; |
| 511 | 511 |
| 512 if (!gaim_status_is_active(status)) | 512 if (!gaim_status_is_active(status)) |
| 513 return; | 513 return; |
| 514 | 514 |
| 515 args[0] = NULL; | 515 args[0] = NULL; |
