diff options
Diffstat (limited to 'deflate.c')
-rw-r--r-- | deflate.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -509,8 +509,7 @@ int ZEXPORT deflateParams(strm, level, strategy) | |||
509 | } | 509 | } |
510 | func = configuration_table[s->level].func; | 510 | func = configuration_table[s->level].func; |
511 | 511 | ||
512 | if ((strategy != s->strategy || func != configuration_table[level].func) && | 512 | if ((strategy != s->strategy || func != configuration_table[level].func)) { |
513 | strm->total_in != 0) { | ||
514 | /* Flush the last buffer: */ | 513 | /* Flush the last buffer: */ |
515 | err = deflate(strm, Z_BLOCK); | 514 | err = deflate(strm, Z_BLOCK); |
516 | if (err == Z_BUF_ERROR && s->pending == 0) | 515 | if (err == Z_BUF_ERROR && s->pending == 0) |