mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
fix for xmlIOParseDTD same as previous and reported by Petr Pajas Daniel
* parser.c: fix for xmlIOParseDTD same as previous and reported by Petr Pajas Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Sat Apr 26 23:17:51 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* parser.c: fix for xmlIOParseDTD same as previous and reported
|
||||||
|
by Petr Pajas
|
||||||
|
|
||||||
Sat Apr 26 15:26:04 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
Sat Apr 26 15:26:04 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* parser.c: applied fix to xmlSAXParseDTD from Malcolm Tredinnick
|
* parser.c: applied fix to xmlSAXParseDTD from Malcolm Tredinnick
|
||||||
|
10
parser.c
10
parser.c
@ -9525,6 +9525,16 @@ xmlIOParseDTD(xmlSAXHandlerPtr sax, xmlParserInputBufferPtr input,
|
|||||||
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