libpurple/protocols/jabber/google.c

changeset 27081
51d62a0b66f9
parent 27062
84edb52aea5b
child 27083
ddab1fcc8436
--- a/libpurple/protocols/jabber/google.c	Fri May 08 03:54:58 2009 +0000
+++ b/libpurple/protocols/jabber/google.c	Sun May 10 21:59:30 2009 +0000
@@ -763,7 +763,8 @@
 
 	/* Acknowledge the notification */
 	iq = jabber_iq_new(js, JABBER_IQ_RESULT);
-	xmlnode_set_attrib(iq->node, "to", from);
+	if (from)
+		xmlnode_set_attrib(iq->node, "to", from);
 	xmlnode_set_attrib(iq->node, "id", id);
 	jabber_iq_send(iq);
 

mercurial