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:
@@ -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
10
tree.c
@@ -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;
|
||||||
|
Reference in New Issue
Block a user