From 15f4139a4e536f71d61564cf1bb034d42f78baa2 Mon Sep 17 00:00:00 2001 From: Aaron Robinson Date: Fri, 19 Mar 2021 09:28:32 -0700 Subject: [PATCH] Help VC++ Code Analysis During some CA work in the dotnet runtime project we discovered the VC++ code analysis has trouble determining the follow value is properly initialized prior to use. Instead of adding a suppression it seemed easier to simply initialize it. See https://github.com/dotnet/runtime/pull/49194#discussion_r597766961 for context. --- inflate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inflate.c b/inflate.c index 165e465a..4a2a217a 100644 --- a/inflate.c +++ b/inflate.c @@ -1540,7 +1540,7 @@ z_streamp source; struct inflate_state FAR *state; struct inflate_state FAR *copy; unsigned char FAR *window; - unsigned wsize; + unsigned wsize = 0; /* check input */ if (inflateStateCheck(source) || dest == Z_NULL)