Skip to content
Permalink
Browse files
Allow a mount point of NULL to mean "/".
  • Loading branch information
icculus committed Jul 23, 2005
1 parent 54969f6 commit 779e52601487163f190d5763602b427dd3e921f3
Showing with 3 additions and 1 deletion.
  1. +3 −1 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);

0 comments on commit 779e526

Please sign in to comment.