1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-07 06:43:02 +03:00

fixed a problem with xmlUnlinkNode() for DTDs. Daniel

* tree.c: fixed a problem with xmlUnlinkNode() for DTDs.
Daniel
This commit is contained in:
Daniel Veillard
2003-05-01 08:03:46 +00:00
parent 61c5220296
commit a067e656fd
2 changed files with 10 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
Thu May 1 10:02:35 CEST 2003 Daniel Veillard <daniel@veillard.com>
* tree.c: fixed a problem with xmlUnlinkNode() for DTDs.
Wed Apr 30 14:16:08 CEST 2003 Daniel Veillard <daniel@veillard.com>
* xml2-config.in: try to fix Red hat bug #89957, do not

2
tree.c
View File

@@ -3250,11 +3250,13 @@ xmlUnlinkNode(xmlNodePtr cur) {
if (cur->type == XML_DTD_NODE) {
xmlDocPtr doc;
doc = cur->doc;
if (doc != NULL) {
if (doc->intSubset == (xmlDtdPtr) cur)
doc->intSubset = NULL;
if (doc->extSubset == (xmlDtdPtr) cur)
doc->extSubset = NULL;
}
}
if (cur->parent != NULL) {
xmlNodePtr parent;
parent = cur->parent;