config: let GetDefaultConfigDir() never return NULL
Fixes #1083, thanks @Pickle
This commit is contained in:
parent
28e726147a
commit
de9163ef53
1 changed files with 4 additions and 1 deletions
|
|
@ -2173,7 +2173,10 @@ static char *GetDefaultConfigDir(void)
|
|||
char *result;
|
||||
|
||||
result = SDL_GetPrefPath("", PACKAGE_TARNAME);
|
||||
if (result != NULL)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
#endif /* #ifndef _WIN32 */
|
||||
return M_StringDuplicate("");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue