Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/usermood.c @ 17583: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 | 7754d39d70c5 |
children | 6842cc73b1b7 |
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 */