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:
nobu 2012-07-09 04:35:53 +00:00
Родитель 66f4c3f18c
Коммит 9a8a2fd294
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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);