diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/zlib/zlib.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index aed2a26134..633bd2d3bb 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -699,15 +699,9 @@ zstream_run(z, src, len, flush) uInt n; int err; - if (NIL_P(z->input)) { - z->stream.next_in = src; - z->stream.avail_in = len; - } - else { - zstream_append_input(z, src, len); - z->stream.next_in = RSTRING(z->input)->ptr; - z->stream.avail_in = RSTRING(z->input)->len; - } + zstream_append_input(z, src, len); + z->stream.next_in = RSTRING(z->input)->ptr; + z->stream.avail_in = RSTRING(z->input)->len; if (z->stream.avail_out == 0) { zstream_expand_buffer(z); |