From ba4a78133ebad45c3d825865d38e0be73bf991de Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Sun, 17 Dec 2023 17:14:17 +0500 Subject: [PATCH] Initialize functable earlier, during inflateInit Signed-off-by: Vladislav Shchapov --- inflate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inflate.c b/inflate.c index 0c9d499f..af5abf11 100644 --- a/inflate.c +++ b/inflate.c @@ -139,6 +139,9 @@ int32_t ZNG_CONDEXPORT PREFIX(inflateInit2)(PREFIX3(stream) *strm, int32_t windo int32_t ret; struct inflate_state *state; + /* Initialize functable earlier. */ + functable.force_init(); + if (strm == NULL) return Z_STREAM_ERROR; strm->msg = NULL; /* in case we return an error */ -- 2.47.3