diff options
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/zlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index c6c52b7454..636ec325ce 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -1293,6 +1293,7 @@ rb_deflate_params(VALUE obj, VALUE v_level, VALUE v_strategy) level = ARG_LEVEL(v_level); strategy = ARG_STRATEGY(v_strategy); + zstream_run(z, (Bytef*)"", 0, Z_SYNC_FLUSH); err = deflateParams(&z->stream, level, strategy); while (err == Z_BUF_ERROR) { rb_warning("deflateParams() returned Z_BUF_ERROR"); |