diff --git a/deflate.c b/deflate.c index f0765d3..06ca0ee 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 &&