From 3f5c46663ece98872badf50e5743fcbfc7e07d1b Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 20 Sep 2022 11:56:40 +0300 Subject: [PATCH] SDL_vsscanf: fix an uninitialized warning --- src/stdlib/SDL_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c index f1dbb655f..9e862792e 100644 --- a/src/stdlib/SDL_string.c +++ b/src/stdlib/SDL_string.c @@ -1356,7 +1356,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap) break; case 'f': { - double value; + double value = 0; advance = SDL_ScanFloat(text, &value); text += advance; if (advance && !suppress) {