changeset 25644:19fa48931b9d

This is shorter and easier to read.
author Paul Aurich <paul@darkrain42.org>
date Thu, 05 Feb 2009 07:31:55 +0000
parents cbbafb072285
children ced3d4ab745a
files libpurple/protocols/jabber/iq.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/iq.c	Thu Feb 05 00:59:58 2009 +0000
+++ b/libpurple/protocols/jabber/iq.c	Thu Feb 05 07:31:55 2009 +0000
@@ -304,9 +304,8 @@
 	 * being) sufficient.
 	 */
 	for (child = packet->child; child; child = child->next) {
-		if (child->type != XMLNODE_TYPE_TAG)
-			continue;
-		break;
+		if (child->type == XMLNODE_TYPE_TAG)
+			break;
 	}
 
 	type = xmlnode_get_attrib(packet, "type");