]> git.lizzy.rs Git - zlib.git/commitdiff
Assure that high-water mark initialization is always applied in deflate.
authorMark Adler <madler@alumni.caltech.edu>
Fri, 23 Sep 2011 06:48:04 +0000 (23:48 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Fri, 23 Sep 2011 06:48:04 +0000 (23:48 -0700)
deflate.c

index f0765d3bcb9d72a63357f7b8a11e5e82c366dea7..06ca0ee096465e287c6a497c3bec3d3c5bdc322c 100644 (file)
--- 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 &&