# SDL\_image: IMG\_stb.c: silence uninitialized warnings (21b98)

**URL:** <https://discourse.libsdl.org/t/sdl-image-img-stb-c-silence-uninitialized-warnings-21b98/42934>\
**Category:** SDL Commits\
**Created:** [March 4, 2023, 2:56pm UTC](https://discourse.libsdl.org/t/sdl-image-img-stb-c-silence-uninitialized-warnings-21b98/42934 "2023-03-04T14:56:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [March 4, 2023, 2:56pm UTC](https://discourse.libsdl.org/t/sdl-image-img-stb-c-silence-uninitialized-warnings-21b98/42934/1 "2023-03-04T14:56:09Z")

</div>

> <https://github.com/libsdl-org/SDL_image/commit/21b98bff500921f81c5a8513d81d1ecfa1c0cf67>

```diff
From 21b98bff500921f81c5a8513d81d1ecfa1c0cf67 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 4 Mar 2023 17:50:50 +0300
Subject: [PATCH] IMG_stb.c: silence uninitialized warnings

---
 IMG_stb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/IMG_stb.c b/IMG_stb.c
index 3c38d126..8b9d8411 100644
--- a/IMG_stb.c
+++ b/IMG_stb.c
@@ -101,6 +101,7 @@ SDL_Surface *IMG_LoadSTB_RW(SDL_RWops *src)
     rw_callbacks.read = IMG_LoadSTB_RW_read;
     rw_callbacks.skip = IMG_LoadSTB_RW_skip;
     rw_callbacks.eof = IMG_LoadSTB_RW_eof;
+ w = h = format = 0; /* silence warning */
     pixels = stbi_load_from_callbacks(
         &rw_callbacks,
         src,

```
