changeset 26933:edff8cc58d66

Avoid an assertion when acking the gmail poke
author Paul Aurich <paul@darkrain42.org>
date Sun, 10 May 2009 21:59:30 +0000
parents 04af21d4be27
children c837cf614adc
files libpurple/protocols/jabber/google.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);