mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d21bd1c06d
commit
6262a99e9b
1 changed files with 5 additions and 0 deletions
|
@ -692,6 +692,11 @@ zstream_run(z, src, len, flush)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (err != Z_OK) {
|
if (err != Z_OK) {
|
||||||
|
if (flush != Z_FINISH && err == Z_BUF_ERROR
|
||||||
|
&& z->stream.avail_out > 0) {
|
||||||
|
z->flags |= ZSTREAM_FLAG_IN_STREAM;
|
||||||
|
break;
|
||||||
|
}
|
||||||
zstream_reset_input(z);
|
zstream_reset_input(z);
|
||||||
if (z->stream.avail_in > 0) {
|
if (z->stream.avail_in > 0) {
|
||||||
zstream_append_input(z, z->stream.next_in, z->stream.avail_in);
|
zstream_append_input(z, z->stream.next_in, z->stream.avail_in);
|
||||||
|
|
Loading…
Reference in a new issue