From: Nathan Moinvaziri Date: Mon, 7 Oct 2019 01:54:05 +0000 (-0700) Subject: Fixed use of uninitialized value state in makefixed. #437 X-Git-Tag: 1.9.9-b1~410 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fbe28aeaf3877b9cb4920d08f53abf6bd32c4f8;p=thirdparty%2Fzlib-ng.git Fixed use of uninitialized value state in makefixed. #437 --- diff --git a/tools/makefixed.c b/tools/makefixed.c index 0f983bd5..66f4355d 100644 --- a/tools/makefixed.c +++ b/tools/makefixed.c @@ -44,6 +44,7 @@ void makefixed(void) { unsigned low, size; struct inflate_state state; + memset(&state, 0, sizeof(state)); buildfixedtables(&state); puts(" /* inffixed.h -- table for decoding fixed codes"); puts(" * Generated automatically by makefixed().");