config: let GetDefaultConfigDir() never return NULL

Fixes #1083, thanks @Pickle
This commit is contained in:
Fabian Greffrath 2018-09-04 15:32:34 +02:00
parent 28e726147a
commit de9163ef53

View file

@ -2173,7 +2173,10 @@ static char *GetDefaultConfigDir(void)
char *result;
result = SDL_GetPrefPath("", PACKAGE_TARNAME);
return result;
if (result != NULL)
{
return result;
}
#endif /* #ifndef _WIN32 */
return M_StringDuplicate("");
}