Assure that high-water mark initialization is always applied in deflate.

This commit is contained in:
Mark Adler 2011-09-22 23:48:04 -07:00
parent faa03d5141
commit 5cf0930ba5

View File

@ -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 &&