changeset 17856:f108b91e2fee

Fixed a minor mistake which could leave the usermood to be parsed incompletely.
author Andreas Monitzer <pidgin@monitzer.com>
date Sun, 17 Jun 2007 19:38:24 +0000
parents 0f0e98978d66
children 3e437e86bd6e
files libpurple/protocols/jabber/usermood.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/usermood.c	Sun Jun 17 04:05:28 2007 +0000
+++ b/libpurple/protocols/jabber/usermood.c	Sun Jun 17 19:38:24 2007 +0000
@@ -105,7 +105,7 @@
 	mood = xmlnode_get_child_with_namespace(item, "mood", "http://jabber.org/protocol/mood");
 	if (!mood)
 		return;
-	for (moodinfo = mood->child; moodinfo != mood->lastchild; moodinfo = moodinfo->next) {
+	for (moodinfo = mood->child; moodinfo; moodinfo = moodinfo->next) {
 		if (moodinfo->type == XMLNODE_TYPE_TAG) {
 			if (!strcmp(moodinfo->name, "text")) {
 				if (!moodtext) /* only pick the first one */