SDL: Fixed shadow variable warning

From 47ebf0087ae33162048e57721642fa4b3e37c4a7 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 8 Aug 2022 08:35:56 -0700
Subject: [PATCH] Fixed shadow variable warning

---
 src/joystick/hidapi/SDL_hidapi_combined.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/joystick/hidapi/SDL_hidapi_combined.c b/src/joystick/hidapi/SDL_hidapi_combined.c
index 659dae8061a..a0ed2fe5204 100644
--- a/src/joystick/hidapi/SDL_hidapi_combined.c
+++ b/src/joystick/hidapi/SDL_hidapi_combined.c
@@ -68,7 +68,7 @@ HIDAPI_DriverCombined_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joys
         SDL_HIDAPI_Device *child = device->children[i];
         if (!child->driver->OpenJoystick(child, joystick)) {
             while (i-- > 0) {
-                SDL_HIDAPI_Device *child = device->children[i];
+                child = device->children[i];
                 child->driver->CloseJoystick(child, joystick);
             }
             return SDL_FALSE;