diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c index daf53d6a5..06ff88547 100644 --- a/src/stdlib/SDL_string.c +++ b/src/stdlib/SDL_string.c @@ -1364,7 +1364,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap) break; case 'f': { - double value = 0; + double value = 0.0; advance = SDL_ScanFloat(text, &value); text += advance; if (advance && !suppress) {