Tue, 06 May 2003 04:37:11 +0000
[gaim-migrate @ 5683]
The rest of serv_set_away() checks for NULL pointers, but the initial
strcmps do not. Fixed.
| src/server.c | file | annotate | diff | comparison | revisions |
--- a/src/server.c Tue May 06 04:27:38 2003 +0000 +++ b/src/server.c Tue May 06 04:37:11 2003 +0000 @@ -294,9 +294,14 @@ { GaimPluginProtocolInfo *prpl_info = NULL; - if (!strcmp(gc->away_state, state) && !strcmp(gc->away, message)) + if (gc->away_state != NULL && state != NULL && + !strcmp(gc->away_state, state)) { + return; + } + if (gc->away != NULL && message != NULL && !strcmp(gc->away, message)) + return; if (gc != NULL && gc->prpl != NULL) prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);