mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2025-03-09 05:20:53 +00:00
Corrected an error, Daniel.
This commit is contained in:
parent
15a8df4b82
commit
dc3dd9d04d
4
tree.c
4
tree.c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user