Skip to content

Commit

Permalink
Help VC++ Code Analysis
Browse files Browse the repository at this point in the history
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 dotnet/runtime#49194 (comment) for context.
  • Loading branch information
AaronRobinsonMSFT authored Mar 19, 2021
1 parent a43a247 commit 15f4139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 15f4139

Please sign in to comment.