diff --git a/src/joystick/SDL_gamepad.c b/src/joystick/SDL_gamepad.c index 901c1a4654..a8dbec349c 100644 --- a/src/joystick/SDL_gamepad.c +++ b/src/joystick/SDL_gamepad.c @@ -1418,9 +1418,6 @@ static char *SDL_PrivateGetGamepadMappingFromMappingString(const char *pMapping) while (SDL_isspace(pSecondComma[1])) { ++pSecondComma; } - if (pSecondComma[1] == '\0') { - return NULL; - } result = SDL_strdup(pSecondComma + 1); /* mapping is everything after the 3rd comma */