[gaim-migrate @ 5683]

Tue, 06 May 2003 04:37:11 +0000

author
Christian Hammond <chipx86@chipx86.com>
date
Tue, 06 May 2003 04:37:11 +0000
changeset 5311
6960ce592f44
parent 5310
ac2ee6a1f846
child 5312
7f9faad3e386

[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);

mercurial