Fixed crash if PHYSFS_init(NULL) is used...
This commit is contained in:
parent
4bf1b305e3
commit
8dbc9bf877
|
@ -300,8 +300,8 @@ char **__PHYSFS_platformDetectAvailableCDs(void)
|
||||||
|
|
||||||
char *__PHYSFS_platformCalcBaseDir(const char *argv0)
|
char *__PHYSFS_platformCalcBaseDir(const char *argv0)
|
||||||
{
|
{
|
||||||
if (strchr(argv0, '\\') != NULL) /* default behaviour can handle this. */
|
if ((argv0 != NULL) && (strchr(argv0, '\\') != NULL))
|
||||||
return(NULL);
|
return(NULL); /* default behaviour can handle this. */
|
||||||
|
|
||||||
return(getExePath(argv0));
|
return(getExePath(argv0));
|
||||||
} /* __PHYSFS_platformCalcBaseDir */
|
} /* __PHYSFS_platformCalcBaseDir */
|
||||||
|
|
Loading…
Reference in New Issue