mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 01:38:27 +00:00
SDL_vsscanf: fix an uninitialized warning
This commit is contained in:
parent
216e3f10bb
commit
3f5c46663e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue