changeset 5311:3f625896f932

[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>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 06 May 2003 04:37:11 +0000
parents f4912a833ff6
children 89948fedf782
files src/server.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);