mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ext/zlib/zlib.c: initialize return value
* ext/zlib/zlib.c (zstream_run_func): initialize the return value, interrupt flag may set before starting loop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
66f4c3f18c
commit
9a8a2fd294
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue