mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-30 21:37:43 +08:00
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:
@@ -492,7 +492,7 @@ SDL_VideoInit(const char *driver_name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Select the proper video driver */
|
/* Select the proper video driver */
|
||||||
index = 0;
|
i = index = 0;
|
||||||
video = NULL;
|
video = NULL;
|
||||||
if (driver_name == NULL) {
|
if (driver_name == NULL) {
|
||||||
driver_name = SDL_getenv("SDL_VIDEODRIVER");
|
driver_name = SDL_getenv("SDL_VIDEODRIVER");
|
||||||
|
|||||||
Reference in New Issue
Block a user