From c1fd0fbb32cbd1b089edd751d465d2ba71b5d778 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 4 Sep 2017 22:14:57 -0700 Subject: [PATCH] Fixed compiler warning with mingw-w64 --- src/stdlib/SDL_string.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c index c8660b36a..1b6c39304 100644 --- a/src/stdlib/SDL_string.c +++ b/src/stdlib/SDL_string.c @@ -1197,7 +1197,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap) /* Fall through to unsigned handling */ case 'u': if (inttype == DO_LONGLONG) { - Uint64 value; + Uint64 value = 0; advance = SDL_ScanUnsignedLongLong(text, radix, &value); text += advance; if (advance && !suppress) { @@ -1206,7 +1206,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap) ++retval; } } else { - unsigned long value; + unsigned long value = 0; advance = SDL_ScanUnsignedLong(text, radix, &value); text += advance; if (advance && !suppress) { @@ -1240,7 +1240,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap) break; case 'p': { - uintptr_t value; + uintptr_t value = 0; advance = SDL_ScanUintPtrT(text, 16, &value); text += advance; if (advance && !suppress) {