From 980208b814f39f6c173f9546a843a30bd8c3d8ed Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 14 Dec 2022 14:24:58 -0800
Subject: [PATCH] Fixed crash in SDL_PrivateGameControllerRefreshMapping()
(cherry picked from commit 7a9966af9d7f4817b72d28a5af38751b0968d1ca)
---
src/joystick/SDL_gamecontroller.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c
index f1d01d29abdb..b71b487b3a2f 100644
--- a/src/joystick/SDL_gamecontroller.c
+++ b/src/joystick/SDL_gamecontroller.c
@@ -1213,8 +1213,6 @@ static void SDL_PrivateGameControllerRefreshMapping(ControllerMapping_t *pContro
SDL_PushEvent(&event);
}
}
-
- controller = controller->next;
}
}