Browse Source

SDL_vsscanf: fix an uninitialized warning

Ozkan Sezer 2 years ago
parent
commit
3f5c46663e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/stdlib/SDL_string.c

+ 1 - 1
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) {