Allow a mount point of NULL to mean "/".

This commit is contained in:
Ryan C. Gordon 2005-07-23 23:10:27 +00:00
parent 54969f6075
commit 779e526014
1 changed files with 3 additions and 1 deletions

View File

@ -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);