1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +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:
Daniel Veillard
2003-10-08 21:33:28 +00:00
parent a88562208d
commit b65e12e3c5
2 changed files with 11 additions and 4 deletions

View File

@ -11392,10 +11392,12 @@ xmlSAXParseFileWithData(xmlSAXHandlerPtr sax, const char *filename,
if ((ctxt->wellFormed) || recovery) {
ret = ctxt->myDoc;
if (ctxt->input->buf->compressed > 0)
ret->compression = 9;
else
ret->compression = ctxt->input->buf->compressed;
if (ret != NULL) {
if (ctxt->input->buf->compressed > 0)
ret->compression = 9;
else
ret->compression = ctxt->input->buf->compressed;
}
}
else {
ret = NULL;