Fixed uninitialized variable

This commit is contained in:
Sam Lantinga 2023-03-08 08:40:38 -08:00
parent bc87983310
commit 35c13196f0

View file

@ -202,7 +202,7 @@ static SDL_bool SDL_GetDriverAndJoystickIndex(int device_index, SDL_JoystickDriv
static int SDL_FindFreePlayerIndex()
{
int player_index;
int player_index = -1;
SDL_AssertJoysticksLocked();