SDL: Fix uninitialised variable

From a4f3905bb6c8549a62656f34474438ccb1052315 Mon Sep 17 00:00:00 2001
From: Mathieu Eyraud <[EMAIL REDACTED]>
Date: Sat, 8 Jul 2023 13:04:59 +0200
Subject: [PATCH] Fix uninitialised variable

---
 src/joystick/SDL_joystick.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index 59bb9f83ef7d..60bf539a9398 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);