aboutsummaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'deflate.c')
-rw-r--r--deflate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/deflate.c b/deflate.c
index 8a1a91e..f146001 100644
--- a/deflate.c
+++ b/deflate.c
@@ -586,7 +586,8 @@ int ZEXPORT deflateParams(strm, level, strategy)
586 } 586 }
587 func = configuration_table[s->level].func; 587 func = configuration_table[s->level].func;
588 588
589 if ((strategy != s->strategy || func != configuration_table[level].func)) { 589 if ((strategy != s->strategy || func != configuration_table[level].func) &&
590 s->high_water) {
590 /* Flush the last buffer: */ 591 /* Flush the last buffer: */
591 int err = deflate(strm, Z_BLOCK); 592 int err = deflate(strm, Z_BLOCK);
592 if (err == Z_STREAM_ERROR) 593 if (err == Z_STREAM_ERROR)