From d156642036d80349426b9e189a09213aa72da864 Mon Sep 17 00:00:00 2001 From: NuklearBomb <33639078+NuklearBomb@users.noreply.github.com> Date: Tue, 29 Jan 2019 01:43:31 -0500 Subject: [PATCH] Silence warning 'tc' may be used uninitialized in this function --- stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index d9c21bc..b687b06 100644 --- a/stb_image.h +++ b/stb_image.h @@ -4731,7 +4731,7 @@ static void stbi__de_iphone(stbi__png *z) static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp) { stbi_uc palette[1024], pal_img_n=0; - stbi_uc has_trans=0, tc[3]; + stbi_uc has_trans=0, tc[3]={0}; stbi__uint16 tc16[3]; stbi__uint32 ioff=0, idata_limit=0, i, pal_len=0; int first=1,k,interlace=0, color=0, is_iphone=0;