mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +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:
@ -1,3 +1,7 @@
|
|||||||
|
Fri Apr 25 18:42:35 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* parser.c: fixing an xmlParseDTD bug raised by Petr Pajas
|
||||||
|
|
||||||
Fri Apr 25 15:20:29 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
Fri Apr 25 15:20:29 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* doc/Makefile.am doc/xmlcatalog.1 doc/xmlcatalog_man.xml
|
* doc/Makefile.am doc/xmlcatalog.1 doc/xmlcatalog_man.xml
|
||||||
|
10
parser.c
10
parser.c
@ -9613,6 +9613,16 @@ xmlSAXParseDTD(xmlSAXHandlerPtr sax, const xmlChar *ExternalID,
|
|||||||
if (ctxt->wellFormed) {
|
if (ctxt->wellFormed) {
|
||||||
ret = ctxt->myDoc->extSubset;
|
ret = ctxt->myDoc->extSubset;
|
||||||
ctxt->myDoc->extSubset = NULL;
|
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 {
|
} else {
|
||||||
ret = NULL;
|
ret = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user