Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54337
b: refs/heads/master
c: f0ac675
h: refs/heads/master
i:
  54335: 602210d
v: v3
  • Loading branch information
Richard Purdie authored and Linus Torvalds committed May 7, 2007
1 parent f9e9851 commit e46dfbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c24228daa1e489721812815838220de607260df9
refs/heads/master: f0ac675806441d17303707856f4d23bd27092014
8 changes: 5 additions & 3 deletions trunk/lib/zlib_inflate/inflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,12 +743,14 @@ int zlib_inflate(z_streamp strm, int flush)

strm->data_type = state->bits + (state->last ? 64 : 0) +
(state->mode == TYPE ? 128 : 0);
if (((in == 0 && out == 0) || flush == Z_FINISH) && ret == Z_OK)
ret = Z_BUF_ERROR;

if (flush == Z_PACKET_FLUSH && ret == Z_OK &&
(strm->avail_out != 0 || strm->avail_in == 0))
strm->avail_out != 0 && strm->avail_in == 0)
return zlib_inflateSyncPacket(strm);

if (((in == 0 && out == 0) || flush == Z_FINISH) && ret == Z_OK)
ret = Z_BUF_ERROR;

return ret;
}

Expand Down

0 comments on commit e46dfbe

Please sign in to comment.