mirror of
https://github.com/encounter/SDL.git
synced 2025-05-22 07:11:23 +00:00
SDL_vsscanf: fix an uninitialized warning
This commit is contained in:
parent
216e3f10bb
commit
3f5c46663e
@ -1356,7 +1356,7 @@ SDL_vsscanf(const char *text, const char *fmt, va_list ap)
|
|||||||
break;
|
break;
|
||||||
case 'f':
|
case 'f':
|
||||||
{
|
{
|
||||||
double value;
|
double value = 0;
|
||||||
advance = SDL_ScanFloat(text, &value);
|
advance = SDL_ScanFloat(text, &value);
|
||||||
text += advance;
|
text += advance;
|
||||||
if (advance && !suppress) {
|
if (advance && !suppress) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user