1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-28 00:21:53 +03:00

fixing an xmlParseDTD bug raised by Petr Pajas Daniel

* parser.c: fixing an xmlParseDTD bug raised by Petr Pajas
Daniel
This commit is contained in:
Daniel Veillard
2003-04-25 16:43:49 +00:00
parent fd5834100f
commit c557346417
2 changed files with 14 additions and 0 deletions

View File

@ -9613,6 +9613,16 @@ xmlSAXParseDTD(xmlSAXHandlerPtr sax, const xmlChar *ExternalID,
if (ctxt->wellFormed) {
ret = ctxt->myDoc->extSubset;
ctxt->myDoc->extSubset = NULL;
if (ret != NULL) {
xmlNodePtr tmp;
ret->doc = NULL;
tmp = ret->children;
while (tmp != NULL) {
tmp->doc = NULL;
tmp = tmp->next;
}
}
} else {
ret = NULL;
}