physfs.c
changeset 692 9c2381075c5e
parent 691 71d9affe0d8a
child 733 29a0c0bb9a05
--- a/physfs.c	Mon Mar 14 11:49:30 2005 +0000
+++ b/physfs.c	Mon Mar 14 12:05:07 2005 +0000
@@ -1302,8 +1302,8 @@
     if (h->mountPoint != NULL)  /* NULL mountpoint means "/". */
     {
         size_t mntpntlen = strlen(h->mountPoint);
+        size_t len = strlen(fname);
         assert(mntpntlen > 1); /* root mount points should be NULL. */
-        size_t len = strlen(fname);
         /* not under the mountpoint, so skip this archive. */
         BAIL_IF_MACRO(len < mntpntlen-1, ERR_NO_SUCH_PATH, 0);
         /* !!! FIXME: Case insensitive? */
@@ -2065,11 +2065,5 @@
     allocator.Free = __PHYSFS_platformAllocatorFree;
 } /* setDefaultAllocator */
 
-
-PHYSFS_Allocator *__PHYSFS_getAllocator(void)
-{
-    return(&allocator);
-} /* __PHYFS_getAllocator */
-
 /* end of physfs.c ... */