mirror of https://github.com/encounter/SDL.git
Make sure GetPrefPath also works without org
This commit is contained in:
parent
419ae29d90
commit
33dccbb381
|
@ -56,6 +56,9 @@ SDL_GetPrefPath(const char *org, const char *app)
|
||||||
SDL_InvalidParamError("app");
|
SDL_InvalidParamError("app");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
if(!org) {
|
||||||
|
org = "";
|
||||||
|
}
|
||||||
|
|
||||||
len = SDL_strlen(base) + SDL_strlen(org) + SDL_strlen(app) + 4;
|
len = SDL_strlen(base) + SDL_strlen(org) + SDL_strlen(app) + 4;
|
||||||
retval = (char *) SDL_malloc(len);
|
retval = (char *) SDL_malloc(len);
|
||||||
|
@ -71,6 +74,6 @@ SDL_GetPrefPath(const char *org, const char *app)
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* SDL_FILESYSTEM_DUMMY || SDL_FILESYSTEM_DISABLED */
|
#endif /* SDL_FILESYSTEM_PSP */
|
||||||
|
|
||||||
/* vi: set ts=4 sw=4 expandtab: */
|
/* vi: set ts=4 sw=4 expandtab: */
|
||||||
|
|
Loading…
Reference in New Issue