mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-06-22 05:17:49 +00:00
Fixed potential uninitialized variable usage
This commit is contained in:
parent
74bdb2115d
commit
67cb3874ef
|
@ -1207,7 +1207,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
|
||||||
SDL_FALLTHROUGH;
|
SDL_FALLTHROUGH;
|
||||||
case 'd':
|
case 'd':
|
||||||
if (inttype == DO_LONGLONG) {
|
if (inttype == DO_LONGLONG) {
|
||||||
Sint64 value;
|
Sint64 value = 0;
|
||||||
advance = SDL_ScanLongLong(text, count, radix, &value);
|
advance = SDL_ScanLongLong(text, count, radix, &value);
|
||||||
text += advance;
|
text += advance;
|
||||||
if (advance && !suppress) {
|
if (advance && !suppress) {
|
||||||
|
@ -1216,7 +1216,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
|
||||||
++retval;
|
++retval;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
long value;
|
long value = 0;
|
||||||
advance = SDL_ScanLong(text, count, radix, &value);
|
advance = SDL_ScanLong(text, count, radix, &value);
|
||||||
text += advance;
|
text += advance;
|
||||||
if (advance && !suppress) {
|
if (advance && !suppress) {
|
||||||
|
|
Loading…
Reference in a new issue