From d80ef3e5f50edf115804381dda9cbc2afc926c6a Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 26 Jul 2021 22:51:24 +0300 Subject: [PATCH] SDL_VideoInit: silence 'may be used uninitialized' warning src/video/SDL_video.c:475: warning: 'i' may be used uninitialized in this function --- src/video/SDL_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index f6c25c03d..bf7d4bb7c 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -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");