summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/zlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 1b651d1..fc49e44 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -924,6 +924,7 @@ zstream_run_func(void *ptr)
struct zstream *z = args->z;
uInt n;
+ err = Z_OK;
while (!args->interrupt) {
n = z->stream.avail_out;
err = z->func->run(&z->stream, flush);