Allow a mount point of NULL to mean "/".
authorRyan C. Gordon <icculus@icculus.org>
Sat, 23 Jul 2005 23:10:27 +0000
changeset 733 29a0c0bb9a05
parent 731 35f592c5cf2d
child 734 bb08bd59f604
Allow a mount point of NULL to mean "/".
physfs.c
--- a/physfs.c	Sat Jul 23 22:59:47 2005 +0000
+++ b/physfs.c	Sat Jul 23 23:10:27 2005 +0000
@@ -987,7 +987,9 @@
     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);