1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-05 19:35:54 +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> 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 * xml2-config.in: try to fix Red hat bug #89957, do not

10
tree.c
View File

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