diff --git a/deflate.c b/deflate.c index f0765d3bcb9d72a63357f7b8a11e5e82c366dea7..06ca0ee096465e287c6a497c3bec3d3c5bdc322c 100644 --- a/deflate.c +++ b/deflate.c @@ -1374,7 +1374,7 @@ local void fill_window(s) #endif more += wsize; } - if (s->strm->avail_in == 0) return; + if (s->strm->avail_in == 0) break; /* If there was no sliding: * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&