SDL_video.c: fix variable 'i' may be uninitialized when used here "_this->name = bootstrap[i]->name;"

main
Sylvain 2022-10-04 10:46:42 +02:00
parent ad29875ee6
commit eac3d6d3c0
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ SDL_VideoInit(const char *driver_name)
SDL_bool init_keyboard = SDL_FALSE;
SDL_bool init_mouse = SDL_FALSE;
SDL_bool init_touch = SDL_FALSE;
int i;
int i = 0;
/* Check to make sure we don't overwrite '_this' */
if (_this != NULL) {