update stb_image.h

int raw_data[4] to 0, or the compiler bugs
This commit is contained in:
themanagainstthetank 2017-01-16 18:12:31 +08:00 committed by GitHub
parent d71aea034b
commit 7e989db555

View File

@ -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_data;
unsigned char *tga_palette = NULL; unsigned char *tga_palette = NULL;
int i, j; int i, j;
unsigned char raw_data[4]; unsigned char raw_data[4] = {0};
int RLE_count = 0; int RLE_count = 0;
int RLE_repeating = 0; int RLE_repeating = 0;
int read_next_pixel = 1; int read_next_pixel = 1;