summaryrefslogtreecommitdiff
path: root/infback.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2020-07-06 17:23:01 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-07-10 15:44:56 +0200
commit7241384112c35f0337fe40828e3d93705d346a8f (patch)
treed3bbea6abc376494709cbe236c889a7893fa84ac /infback.c
parent07a6e872c5f9cd979b436a031f5fb02733d9e3a1 (diff)
Fixed chunksize not being initialized when using inflateBack.
Diffstat (limited to 'infback.c')
-rw-r--r--infback.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/infback.c b/infback.c
index 2802ada..5691c2b 100644
--- a/infback.c
+++ b/infback.c
@@ -16,6 +16,7 @@
#include "inflate.h"
#include "inffast.h"
#include "inflate_p.h"
+#include "functable.h"
/*
strm provides memory allocation functions in zalloc and zfree, or
@@ -50,6 +51,7 @@ int32_t ZEXPORT PREFIX(inflateBackInit_)(PREFIX3(stream) *strm, int32_t windowBi
state->window = window;
state->wnext = 0;
state->whave = 0;
+ state->chunksize = functable.chunksize();
return Z_OK;
}