Commit 3f5c46663ece98872badf50e5743fcbfc7e07d1b

Ozkan Sezer 2022-09-20T11:56:40

SDL_vsscanf: fix an uninitialized warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c
index f1dbb65..9e86279 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) {