зеркало из https://github.com/github/ruby.git
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:
Родитель
66f4c3f18c
Коммит
9a8a2fd294
|
@ -924,6 +924,7 @@ zstream_run_func(void *ptr)
|
||||||
struct zstream *z = args->z;
|
struct zstream *z = args->z;
|
||||||
uInt n;
|
uInt n;
|
||||||
|
|
||||||
|
err = Z_OK;
|
||||||
while (!args->interrupt) {
|
while (!args->interrupt) {
|
||||||
n = z->stream.avail_out;
|
n = z->stream.avail_out;
|
||||||
err = z->func->run(&z->stream, flush);
|
err = z->func->run(&z->stream, flush);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче