Commit 47ebf0087ae33162048e57721642fa4b3e37c4a7

Sam Lantinga 2022-08-08T08:35:56

Fixed shadow variable warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/joystick/hidapi/SDL_hidapi_combined.c b/src/joystick/hidapi/SDL_hidapi_combined.c
index 659dae8..a0ed2fe 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;