Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
/ jdk19 Public archive

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
Original file line number Diff line number Diff line change
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

1 comment on commit 4c6d22a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.