dos: Don't do parameter validation in SDL_SYS_GetPrefPath.
Some checks are pending
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions

The higher level did it already.
This commit is contained in:
Ryan C. Gordon 2026-06-18 13:45:27 -04:00
parent 7134ed5c1c
commit d5dca1ec3d
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -125,20 +125,11 @@ char *SDL_SYS_GetPrefPath(const char *org, const char *app)
{
char *result = NULL;
size_t len;
if (!app) {
SDL_InvalidParamError("app");
return NULL;
}
const char *base = SDL_GetBasePath();
if (!base) {
return NULL;
}
if (!org) {
org = "";
}
len = SDL_strlen(base) + SDL_strlen(org) + SDL_strlen(app) + 4;
result = (char *)SDL_malloc(len);
if (result) {