From eac3d6d3c003405af2cd12591c1750d742124ee3 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 4 Oct 2022 10:46:42 +0200 Subject: [PATCH] SDL_video.c: fix variable 'i' may be uninitialized when used here "_this->name = bootstrap[i]->name;" --- 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 d245f5fcd..139c550c5 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -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) {