SDL_GameControllerGetAppleSFSymbolsNameForAxis() returns NULL if the symbol isn't found

This commit is contained in:
Sam Lantinga
2024-03-03 11:56:29 -08:00
parent b87116ff03
commit 627e15871a

View File

@@ -3280,10 +3280,11 @@ const char *SDL_GameControllerGetAppleSFSymbolsNameForAxis(SDL_GameController *g
}
SDL_UnlockJoysticks();
return retval;
#else
return NULL;
if (retval && *retval) {
return retval;
}
#endif
return NULL;
}
/* vi: set ts=4 sw=4 expandtab: */