Przeglądaj źródła

Merge branch 'fix_issue-608' of https://github.com/rygorous/stb into working

Sean Barrett 6 lat temu
rodzic
commit
3b5ffbe31c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      stb_image.h

+ 1 - 1
stb_image.h

@@ -3659,7 +3659,7 @@ static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp
       int k;
       int k;
       unsigned int i,j;
       unsigned int i,j;
       stbi_uc *output;
       stbi_uc *output;
-      stbi_uc *coutput[4];
+      stbi_uc *coutput[4] = { NULL, NULL, NULL, NULL };
 
 
       stbi__resample res_comp[4];
       stbi__resample res_comp[4];