Skip to content

Commit

Permalink
8288769: Revert unintentional change to deflate.c
Browse files Browse the repository at this point in the history
Reviewed-by: iris, bpb, alanb
  • Loading branch information
Lance Andersen committed Aug 10, 2022
1 parent 5fce02e commit 4c6d22a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.base/share/native/libzip/zlib/deflate.c
Expand Up @@ -555,7 +555,7 @@ int ZEXPORT deflateResetKeep (strm)
s->wrap == 2 ? crc32(0L, Z_NULL, 0) :
#endif
adler32(0L, Z_NULL, 0);
s->last_flush = Z_NO_FLUSH;
s->last_flush = -2;

_tr_init(s);

Expand Down Expand Up @@ -649,7 +649,7 @@ int ZEXPORT deflateParams(strm, level, strategy)
func = configuration_table[s->level].func;

if ((strategy != s->strategy || func != configuration_table[level].func) &&
s->high_water) {
s->last_flush != -2) {
/* Flush the last buffer: */
int err = deflate(strm, Z_BLOCK);
if (err == Z_STREAM_ERROR)
Expand Down

0 comments on commit 4c6d22a

Please sign in to comment.