1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-10 08:58:16 +03:00

Anthony Jones pointed out a problem in xmlStringGetNodeList() and provided

* tree.c: Anthony Jones  pointed out a problem in
  xmlStringGetNodeList() and provided a fix for it
Daniel
This commit is contained in:
Daniel Veillard 2002-01-06 23:05:13 +00:00
parent aa39a0fb6b
commit 6f42c13647
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Jan 7 00:03:58 CET 2002 Daniel Veillard <daniel@veillard.com>
* tree.c: Anthony Jones pointed out a problem in
xmlStringGetNodeList() and provided a fix for it
Sun Jan 6 13:45:49 CET 2002 Daniel Veillard <daniel@veillard.com>
* parser.c: patch from Jack J Franklin to remove a bug in

3
tree.c
View File

@ -750,6 +750,9 @@ xmlStringGetNodeList(xmlDocPtr doc, const xmlChar *value) {
if (last == NULL) {
node = xmlNewDocText(doc, ent->content);
last = ret = node;
} else if (last->type != XML_TEXT_NODE) {
node = xmlNewDocText(doc, ent->content);
last = xmlAddNextSibling(last, node);
} else
xmlNodeAddContent(last, ent->content);