mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +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:
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;
|
||||
|
Reference in New Issue
Block a user