# HG changeset patch
# User Christian Hammond <chipx86@chipx86.com>
# Date 1052195831 0
# Node ID 3f625896f93245bed19a6bbb6206d7591c415a4c
# Parent  f4912a833ff64a8fc5e2961609706864910857f9
[gaim-migrate @ 5683]
The rest of serv_set_away() checks for NULL pointers, but the initial
strcmps do not. Fixed.

committer: Tailor Script <tailor@pidgin.im>

diff -r f4912a833ff6 -r 3f625896f932 src/server.c
--- 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);