diff options
Diffstat (limited to 'deflate.c')
-rw-r--r-- | deflate.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1754,8 +1754,10 @@ local block_state deflate_stored(deflate_state *s, int flush) { | |||
1754 | s->high_water = s->strstart; | 1754 | s->high_water = s->strstart; |
1755 | 1755 | ||
1756 | /* If the last block was written to next_out, then done. */ | 1756 | /* If the last block was written to next_out, then done. */ |
1757 | if (last) | 1757 | if (last) { |
1758 | s->bi_used = 8; | ||
1758 | return finish_done; | 1759 | return finish_done; |
1760 | } | ||
1759 | 1761 | ||
1760 | /* If flushing and all input has been consumed, then done. */ | 1762 | /* If flushing and all input has been consumed, then done. */ |
1761 | if (flush != Z_NO_FLUSH && flush != Z_FINISH && | 1763 | if (flush != Z_NO_FLUSH && flush != Z_FINISH && |