From 7e989db555e3acba73db2dc162856ff6dcb9b7b9 Mon Sep 17 00:00:00 2001 From: themanagainstthetank <2011301000007@whu.edu.cn> Date: Mon, 16 Jan 2017 18:12:31 +0800 Subject: [PATCH] update stb_image.h int raw_data[4] to 0, or the compiler bugs --- stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index 5b334f6..3940f38 100644 --- a/stb_image.h +++ b/stb_image.h @@ -5375,7 +5375,7 @@ static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req unsigned char *tga_data; unsigned char *tga_palette = NULL; int i, j; - unsigned char raw_data[4]; + unsigned char raw_data[4] = {0}; int RLE_count = 0; int RLE_repeating = 0; int read_next_pixel = 1;