mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +03:00
bug in compression saving was crashing galeon, reported by teuf Daniel
* parser.c: bug in compression saving was crashing galeon, reported by teuf Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
Wed Oct 8 23:31:23 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* parser.c: bug in compression saving was crashing galeon
|
||||
reported by teuf
|
||||
|
||||
Wed Oct 8 21:18:12 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* error.c tree.c xmlIO.c xmllint.c: more cleanup through the
|
||||
|
2
parser.c
2
parser.c
@ -11392,11 +11392,13 @@ xmlSAXParseFileWithData(xmlSAXHandlerPtr sax, const char *filename,
|
||||
|
||||
if ((ctxt->wellFormed) || recovery) {
|
||||
ret = ctxt->myDoc;
|
||||
if (ret != NULL) {
|
||||
if (ctxt->input->buf->compressed > 0)
|
||||
ret->compression = 9;
|
||||
else
|
||||
ret->compression = ctxt->input->buf->compressed;
|
||||
}
|
||||
}
|
||||
else {
|
||||
ret = NULL;
|
||||
xmlFreeDoc(ctxt->myDoc);
|
||||
|
Reference in New Issue
Block a user