Mercurial > pidgin.yaz
diff libpurple/xmlnode.c @ 19388:1c97caf1ebbb
xmlnode bugfix patch from Mauro Brasil
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Thu, 23 Aug 2007 21:20:49 +0000 |
| parents | 6050348614ab |
| children | 472bcd9d502e 077c2df60c38 |
line wrap: on
line diff
--- a/libpurple/xmlnode.c Thu Aug 23 20:03:00 2007 +0000 +++ b/libpurple/xmlnode.c Thu Aug 23 21:20:49 2007 +0000 @@ -272,6 +272,8 @@ if(NULL != node->parent) { if(node->parent->child == node) { node->parent->child = node->next; + if (node->parent->lastchild == node) + node->parent->lastchild = node->next; } else { xmlnode *prev = node->parent->child; while(prev && prev->next != node) { @@ -279,6 +281,8 @@ } if(prev) { prev->next = node->next; + if (node->parent->lastchild == node) + node->parent->lastchild = prev; } } }
