physfs.c
changeset 314 a156f6155e3c
parent 272 470430943851
child 363 79f155a51527
--- a/physfs.c	Sat Jun 29 22:23:30 2002 +0000
+++ b/physfs.c	Sat Jun 29 22:24:52 2002 +0000
@@ -1321,6 +1321,7 @@
         fname++;
 
     __PHYSFS_platformGrabMutex(stateLock);
+    BAIL_IF_MACRO_MUTEX(!searchPath, ERR_NOT_IN_SEARCH_PATH, stateLock, NULL);
     for (i = searchPath; i != NULL; i = i->next)
     {
         DirHandle *h = i->dirHandle;