From d6a598186cd226a77c0c63acf85487966b7bd2a9 Mon Sep 17 00:00:00 2001 From: Fabian Giesen Date: Fri, 1 Mar 2019 19:56:53 -0800 Subject: [PATCH] stb_image: Pacify some MSVC warnings. Convince the compiler's dataflow analysis that yes, we are not reading uninitialized values of coutput. Fixes issue #608. --- stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index 8b71060..18b867b 100644 --- a/stb_image.h +++ b/stb_image.h @@ -3659,7 +3659,7 @@ static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp int k; unsigned int i,j; stbi_uc *output; - stbi_uc *coutput[4]; + stbi_uc *coutput[4] = { NULL, NULL, NULL, NULL }; stbi__resample res_comp[4];