diff libpurple/protocols/jabber/usernick.c @ 26873:5872d1bc546f

On errors, don't pretend we did fetch something, pass NULL.
author Paul Aurich <paul@darkrain42.org>
date Sun, 03 May 2009 06:38:16 +0000
parents e816444c1a01
children 8c991e09efcb
line wrap: on
line diff
--- a/libpurple/protocols/jabber/usernick.c	Sun May 03 06:36:05 2009 +0000
+++ b/libpurple/protocols/jabber/usernick.c	Sun May 03 06:38:16 2009 +0000
@@ -65,7 +65,10 @@
 
 static void do_nick_got_own_nick_cb(JabberStream *js, const char *from, xmlnode *items) {
 	char *oldnickname = NULL;
-	xmlnode *item = xmlnode_get_child(items,"item");
+	xmlnode *item = NULL;
+	
+	if (items)
+		item = xmlnode_get_child(items,"item");
 
 	if(item) {
 		xmlnode *nick = xmlnode_get_child_with_namespace(item,"nick","http://jabber.org/protocol/nick");