From f7f7e2f63ec9c72055226f21649446d21f30b2fd Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Sun, 9 Dec 2012 16:58:59 -0800 Subject: [PATCH] Fixed clang compile errors in stb_image. --- 3rdparty/stb_image/stb_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdparty/stb_image/stb_image.c b/3rdparty/stb_image/stb_image.c index f258d9c1..a3307b01 100644 --- a/3rdparty/stb_image/stb_image.c +++ b/3rdparty/stb_image/stb_image.c @@ -3745,7 +3745,7 @@ static stbi_uc *pic_load2(stbi *s,int width,int height,int *comp, stbi_uc *resul int left=width, i; while (left>0) { - stbi_uc count,value[4]; + stbi_uc count,value[4] = { 0 }; count=get8u(s); if (at_eof(s)) return epuc("bad file","file too short (pure read count)"); @@ -3769,7 +3769,7 @@ static stbi_uc *pic_load2(stbi *s,int width,int height,int *comp, stbi_uc *resul if (at_eof(s)) return epuc("bad file","file too short (mixed read count)"); if (count >= 128) { // Repeated - stbi_uc value[4]; + stbi_uc value[4] = { 0 }; int i; if (count==128)