im.pidgin.pidgin: 57d44c78035b6b60004e0097888d27e9f704f801

datallah at pidgin.im datallah at pidgin.im
Tue Oct 9 22:09:17 EDT 2007


-----------------------------------------------------------------
Revision: 57d44c78035b6b60004e0097888d27e9f704f801
Ancestor: 3c8ef38868e1f7bc689500c66144a610cdb428f2
Author: datallah at pidgin.im
Date: 2007-10-10T01:39:20
Branch: im.pidgin.pidgin

Modified files:
        libpurple/xmlnode.c

ChangeLog: 

This change is really logically no change, but it is clearer as to what is going on and will prevent CID 5 and 313.

-------------- next part --------------
============================================================
--- libpurple/xmlnode.c	301d2cff5e70a31ea398472724dbd6d27e73a3ea
+++ libpurple/xmlnode.c	30f07eb32a368a46c334da23dd104007c86d5b11
@@ -131,7 +131,7 @@ xmlnode_remove_attrib(xmlnode *node, con
 		if(attr_node->type == XMLNODE_TYPE_ATTRIB &&
 				!strcmp(attr_node->name, attr))
 		{
-			if(node->child == attr_node) {
+			if(sibling == NULL) {
 				node->child = attr_node->next;
 			} else {
 				sibling->next = attr_node->next;
@@ -174,7 +174,7 @@ xmlnode_remove_attrib_with_namespace(xml
 		   !strcmp(attr_node->name, attr) &&
 		   _xmlnode_compare_xmlns(xmlns, attr_node->xmlns))
 		{
-			if(node->child == attr_node) {
+			if(sibling == NULL) {
 				node->child = attr_node->next;
 			} else {
 				sibling->next = attr_node->next;


More information about the Commits mailing list