diff libpurple/protocols/jabber/buddy.c @ 17855:0f0e98978d66

Turns out the example in XEP-0084 is wrong. Fixed my implementation to not try to work around an issue that isn't one.
author Andreas Monitzer <pidgin@monitzer.com>
date Sun, 17 Jun 2007 04:05:28 +0000
parents 5ab3c6bb95b4
children 58a145802f0a
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c	Sun Jun 17 03:51:19 2007 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Sun Jun 17 04:05:28 2007 +0000
@@ -1129,12 +1129,16 @@
 	g_free(info);
 }
 
-static void do_buddy_avatar_update_data(JabberStream *js, const char *from, xmlnode *item) {
-	xmlnode *data;
+static void do_buddy_avatar_update_data(JabberStream *js, const char *from, xmlnode *items) {
+	xmlnode *item, *data;
 	const char *checksum;
 	char *b64data;
 	void *img;
 	size_t size;
+	if(!items)
+		return;
+	
+	item = xmlnode_get_child(items, "item");
 	if(!item)
 		return;