1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00

Corrected an error, Daniel.

This commit is contained in:
Daniel Veillard 1998-09-24 19:25:54 +00:00
parent 15a8df4b82
commit dc3dd9d04d

4
tree.c
View File

@ -1214,8 +1214,8 @@ int xmlSaveFile(const char *filename, xmlDocPtr cur) {
int ret;
#ifdef HAVE_ZLIB_H
if ((xmlCompressMode > 0) && (xmlCompressMode <= 9)) {
sprintf(mode, "w%d", xmlCompressMode);
if ((cur->compression > 0) && (cur->compression <= 9)) {
sprintf(mode, "w%d", cur->compression);
zoutput = gzopen(filename, mode);
}
if (zoutput == NULL) {