SDL: Fixed uninitialized variable (b7d7e)

From b7d7e548958e830841bd0103db75202304ad8841 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 21 Nov 2023 15:26:34 -0800
Subject: [PATCH] Fixed uninitialized variable

---
 src/joystick/apple/SDL_mfijoystick.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/joystick/apple/SDL_mfijoystick.m b/src/joystick/apple/SDL_mfijoystick.m
index 6462a9eb5c2b..9e106ce930af 100644
--- a/src/joystick/apple/SDL_mfijoystick.m
+++ b/src/joystick/apple/SDL_mfijoystick.m
@@ -554,7 +554,7 @@ static BOOL IOS_AddMFIJoystickDevice(SDL_JoystickDeviceItem *device, GCControlle
     if (controller.extendedGamepad) {
         GCExtendedGamepad *gamepad = controller.extendedGamepad;
         int nbuttons = 0;
-        BOOL has_direct_menu;
+        BOOL has_direct_menu = FALSE;
 
         /* These buttons are part of the original MFi spec */
         device->button_mask |= (1 << SDL_GAMEPAD_BUTTON_SOUTH);