libgaim/protocols/jabber/disco.c

changeset 14356
7f4abf922cfa
parent 14254
77edc7a6191a
child 15197
1d98528d4ee3
--- a/libgaim/protocols/jabber/disco.c	Tue Aug 22 18:10:43 2006 +0000
+++ b/libgaim/protocols/jabber/disco.c	Tue Aug 22 18:28:00 2006 +0000
@@ -200,7 +200,7 @@
 	const char *from = xmlnode_get_attrib(packet, "from");
 	const char *type = xmlnode_get_attrib(packet, "type");
 
-	if(!strcmp(type, "get")) {
+	if(type && !strcmp(type, "get")) {
 		JabberIq *iq = jabber_iq_new_query(js, JABBER_IQ_RESULT,
 				"http://jabber.org/protocol/disco#items");
 

mercurial