aboutsummaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'inflate.c')
-rw-r--r--inflate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/inflate.c b/inflate.c
index 6832b8b..1523598 100644
--- a/inflate.c
+++ b/inflate.c
@@ -1232,7 +1232,8 @@ int flush;
1232 */ 1232 */
1233 inf_leave: 1233 inf_leave:
1234 RESTORE(); 1234 RESTORE();
1235 if (state->wsize || (state->mode < BAD && out != strm->avail_out)) 1235 if (state->wsize || (out != strm->avail_out && state->mode < BAD &&
1236 (state->mode < CHECK || flush != Z_FINISH)))
1236 if (updatewindow(strm, out)) { 1237 if (updatewindow(strm, out)) {
1237 state->mode = MEM; 1238 state->mode = MEM;
1238 return Z_MEM_ERROR; 1239 return Z_MEM_ERROR;