Browse Source

update stb_image.h

int raw_data[4] to 0, or the compiler bugs
themanagainstthetank 8 years ago
parent
commit
7e989db555
1 changed files with 1 additions and 1 deletions
  1. 1 1
      stb_image.h

+ 1 - 1
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;