From acc7a4107dfc37cafec156ebc11f3b651bb4bafc Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 13 Feb 2010 05:45:23 +0200 Subject: [PATCH] zlib: o_stream_create_deflate() shouldn't have enabled zlib header. --HG-- branch : HEAD --- src/plugins/zlib/ostream-zlib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/zlib/ostream-zlib.c b/src/plugins/zlib/ostream-zlib.c index e3e64108e6..2e9cb63672 100644 --- a/src/plugins/zlib/ostream-zlib.c +++ b/src/plugins/zlib/ostream-zlib.c @@ -246,8 +246,7 @@ o_stream_create_zlib(struct ostream *output, int level, bool gz) o_stream_ref(output); o_stream_zlib_init_gz_header(zstream, level, strategy); - ret = deflateInit2(&zstream->zs, level, Z_DEFLATED, - gz ? -15 : 15, 8, strategy); + ret = deflateInit2(&zstream->zs, level, Z_DEFLATED, -15, 8, strategy); switch (ret) { case Z_OK: break; -- 2.47.3