r746 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Jul 23 19:10:27 EDT 2005
Author: icculus
Date: 2005-07-23 19:10:27 -0400 (Sat, 23 Jul 2005)
New Revision: 746
Modified:
trunk/physfs.c
Log:
Allow a mount point of NULL to mean "/".
Modified: trunk/physfs.c
===================================================================
--- trunk/physfs.c 2005-07-23 23:00:08 UTC (rev 745)
+++ trunk/physfs.c 2005-07-23 23:10:27 UTC (rev 746)
@@ -987,8 +987,10 @@
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);
for (i = searchPath; i != NULL; i = i->next)
More information about the physfs-commits
mailing list