diff options
| -rw-r--r-- | gzwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 | } |
