Commit 0c439c5b0acbc5e2ccb38efe5def1b6f2cb2494d

Thomas de Grivel 2023-12-09T14:44:39

-Wclobber

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libc3/window/sdl2/sdl2_sprite.c b/libc3/window/sdl2/sdl2_sprite.c
index cb86351..5d07bdc 100644
--- a/libc3/window/sdl2/sdl2_sprite.c
+++ b/libc3/window/sdl2/sdl2_sprite.c
@@ -173,6 +173,8 @@ s_sdl2_sprite * sdl2_sprite_init (s_sdl2_sprite *sprite,
     return NULL;
   }
   gl_internal_format = 0;
+  gl_format = 0;
+  png_components = 0;
   if (setjmp(png_jmpbuf(png_read))) {
     png_destroy_read_struct(&png_read, &png_info, NULL);
     fclose(fp);