aboutsummaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'deflate.c')
-rw-r--r--deflate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/deflate.c b/deflate.c
index 544521d..daab31a 100644
--- a/deflate.c
+++ b/deflate.c
@@ -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)