Allow a mount point of NULL to mean "/".
This commit is contained in:
parent
54969f6075
commit
779e526014
4
physfs.c
4
physfs.c
|
@ -987,7 +987,9 @@ int PHYSFS_mount(const char *newDir, const char *mountPoint, int appendToPath)
|
|||
DirHandle *i;
|
||||
|
||||
BAIL_IF_MACRO(newDir == NULL, ERR_INVALID_ARGUMENT, 0);
|
||||
BAIL_IF_MACRO(mountPoint == NULL, ERR_INVALID_ARGUMENT, 0);
|
||||
|
||||
if (mountPoint == NULL)
|
||||
mountPoint = "/";
|
||||
|
||||
__PHYSFS_platformGrabMutex(stateLock);
|
||||
|
||||
|
|
Loading…
Reference in New Issue