diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index 59bb9f83e..60bf539a9 100644 --- a/src/joystick/SDL_joystick.c +++ b/src/joystick/SDL_joystick.c @@ -585,6 +585,7 @@ static SDL_bool ShouldAttemptSensorFusion(SDL_Joystick *joystick, SDL_bool *inve SDL_JoystickGUID guid; Uint16 vendor, product; SDL_bool enabled; + SDL_zero(gamepads); /* See if the gamepad is in our list of devices to enable */ guid = SDL_GetJoystickGUID(joystick);