Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow a mount point of NULL to mean "/".
  • Loading branch information
icculus committed Jul 23, 2005
1 parent 54969f6 commit 779e526
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion physfs.c
Expand Up @@ -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);

Expand Down

0 comments on commit 779e526

Please sign in to comment.