mirror of
https://github.com/GNOME/libxml2.git
synced 2025-03-25 19:01:31 +08:00
fixed a problem with xmlUnlinkNode() for DTDs. Daniel
* tree.c: fixed a problem with xmlUnlinkNode() for DTDs. Daniel
This commit is contained in:
parent
61c5220296
commit
a067e656fd
@ -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
|
||||
|
10
tree.c
10
tree.c
@ -3250,10 +3250,12 @@ xmlUnlinkNode(xmlNodePtr cur) {
|
||||
if (cur->type == XML_DTD_NODE) {
|
||||
xmlDocPtr doc;
|
||||
doc = cur->doc;
|
||||
if (doc->intSubset == (xmlDtdPtr) cur)
|
||||
doc->intSubset = NULL;
|
||||
if (doc->extSubset == (xmlDtdPtr) cur)
|
||||
doc->extSubset = NULL;
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user