diff options
Diffstat (limited to 'deflate.c')
-rw-r--r-- | deflate.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |