diff libpurple/protocols/jabber/presence.c @ 24708:b4a2ce33b3d5

propagate from branch 'im.pidgin.pidgin' (head d3440d677dd69ed30a8158b515bd26d210dacb9d) to branch 'im.pidgin.cpw.malu.xmpp.attention' (head b03e6741a6f1b8961fffc2f24ea2b73b921dac09)
author Marcus Lundblad <ml@update.uu.se>
date Sun, 30 Nov 2008 19:36:38 +0000
parents 10ab5441572f
children 61e0924de04a e1f363f8fd6b 6f94b4a27372 25e2ab1fff1d
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Sun Nov 30 19:34:11 2008 +0000
+++ b/libpurple/protocols/jabber/presence.c	Sun Nov 30 19:36:38 2008 +0000
@@ -513,7 +513,7 @@
 		} else if(!strcmp(y->name, "delay") && !strcmp(xmlns, "urn:xmpp:delay")) {
 			/* XXX: compare the time.  jabber:x:delay can happen on presence packets that aren't really and truly delayed */
 			delayed = TRUE;
-		} else if(!strcmp(y->name, "c") && !strcmp(xmlns, "http://jabber.org/protocol/caps")) {
+		} else if(xmlns && !strcmp(y->name, "c") && !strcmp(xmlns, "http://jabber.org/protocol/caps")) {
 			caps = y; /* store for later, when creating buddy resource */
 		} else if(!strcmp(y->name, "x")) {
 			const char *xmlns = xmlnode_get_namespace(y);