Skip to content

Commit e3b92d5

Browse files
author
Xavier Roche
committed
Manually merged 8c4cdb2 by mvwieringen
* "The zlib deflateResetKeep that is called from deflateReset of which fastlzlibReset is an equivalence off resets more fields so added resetting these fields in fastlzlibReset too"
1 parent 915a9f6 commit e3b92d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fastlzlib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ static void fastlzlibReset(zfast_stream *s) {
258258
s->state->dec_size = 0;
259259
s->state->inBuffOffs = 0;
260260
s->state->outBuffOffs = 0;
261+
s->total_in = 0;
262+
s->total_out = 0;
261263
}
262264

263265
static ZFASTINLINE int fastlzlibGetBlockSizeLevel(int block_size) {

0 commit comments

Comments
 (0)