From ae9ff11bae20d9151f589dd8010afa979e38c00a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 29 May 2020 14:54:07 -0700 Subject: [PATCH] The zero happens at a higher level now --- src/joystick/linux/SDL_sysjoystick.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c index 2ffb4eb47..f5d94522e 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -1132,8 +1132,7 @@ LINUX_JoystickGetGamepadMapping(int device_index, SDL_GamepadMapping *out) return SDL_FALSE; } - /* We have a gamepad; start filling out the mappings. */ - memset(out, 0, sizeof(SDL_GamepadMapping)); + /* We have a gamepad, start filling out the mappings */ if (joystick->hwdata->has_key[BTN_SOUTH]) { out->a.kind = EMappingKind_Button;