changeset 8042:7fa6ddec6e30

[gaim-migrate @ 8726] fix a segfault I ran in to committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 09 Jan 2004 16:58:33 +0000
parents 70b7516d1447
children 9a6df4d567e0
files src/protocols/jabber/message.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/message.c	Fri Jan 09 15:21:42 2004 +0000
+++ b/src/protocols/jabber/message.c	Fri Jan 09 16:58:33 2004 +0000
@@ -482,12 +482,13 @@
 {
 	JabberChat *chat;
 	JabberMessage *jm;
-	JabberStream *js = gc->proto_data;
+	JabberStream *js;
 	char *buf, *xhtml;
 
-	if(!msg)
+	if(!msg || !gc)
 		return 0;
 
+	js = gc->proto_data;
 	chat = jabber_chat_find_by_id(js, id);
 
 	if(!strcmp(msg, "/configure") || !strcmp(msg, "/config")) {