Removed a FIXME.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 22 Mar 2012 02:57:29 -0400
changeset 1251 9d11fdcb1084
parent 1250 53b2f31a01c4
child 1252 60d9a5d666cd
Removed a FIXME.
src/physfs.c
--- a/src/physfs.c	Thu Mar 22 00:41:39 2012 -0400
+++ b/src/physfs.c	Thu Mar 22 02:57:29 2012 -0400
@@ -2229,10 +2229,7 @@
 
         GOTO_IF_MACRO(!searchPath, PHYSFS_ERR_NO_SUCH_PATH, openReadEnd);
 
-        /* !!! FIXME: Why aren't we using a for loop here? */
-        i = searchPath;
-
-        do
+        for (i = searchPath; (i != NULL) && (!fileExists); i = i->next)
         {
             char *arcfname = fname;
             if (verifyPath(i, &arcfname, 0))
@@ -2241,8 +2238,7 @@
                 if (io)
                     break;
             } /* if */
-            i = i->next;
-        } while ((i != NULL) && (!fileExists));
+        } /* for */
 
         /* !!! FIXME: may not set an error if openRead didn't fail. */
         GOTO_IF_MACRO(!io, ERRPASS, openReadEnd);