aboutsummaryrefslogtreecommitdiff
path: root/gzwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'gzwrite.c')
-rw-r--r--gzwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gzwrite.c b/gzwrite.c
index 2905cce..61a4de7 100644
--- a/gzwrite.c
+++ b/gzwrite.c
@@ -554,7 +554,7 @@ int ZEXPORT gzsetparams(file, level, strategy)
554 /* change compression parameters for subsequent input */ 554 /* change compression parameters for subsequent input */
555 if (state->size) { 555 if (state->size) {
556 /* flush previous input with previous parameters before changing */ 556 /* flush previous input with previous parameters before changing */
557 if (strm->avail_in && gz_comp(state, Z_PARTIAL_FLUSH) == -1) 557 if (strm->avail_in && gz_comp(state, Z_BLOCK) == -1)
558 return state->err; 558 return state->err;
559 deflateParams(strm, level, strategy); 559 deflateParams(strm, level, strategy);
560 } 560 }