Mercurial > pidgin
diff libpurple/xmlnode.c @ 20336:b93e7be3847b
applied changes from 9d35dde0c779cca73548172223ba557f27d61882
through cd26f6af7f8ee75ef909ae08b06ad5a1978051d9
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Sat, 20 Oct 2007 15:57:22 +0000 |
| parents | 3a9709bfde65 |
| children | 78f3361f5e62 |
line wrap: on
line diff
--- a/libpurple/xmlnode.c Fri Oct 19 18:36:08 2007 +0000 +++ b/libpurple/xmlnode.c Sat Oct 20 15:57:22 2007 +0000 @@ -131,7 +131,7 @@ 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 @@ !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;
