SDL_VideoInit: silence 'may be used uninitialized' warning

src/video/SDL_video.c:475: warning: 'i' may be used uninitialized in this function
This commit is contained in:
Ozkan Sezer 2021-07-26 22:51:24 +03:00
parent 45de0a1d13
commit d80ef3e5f5

View File

@ -492,7 +492,7 @@ SDL_VideoInit(const char *driver_name)
}
/* Select the proper video driver */
index = 0;
i = index = 0;
video = NULL;
if (driver_name == NULL) {
driver_name = SDL_getenv("SDL_VIDEODRIVER");