Skip to content

Commit

Permalink
Removed a FIXME.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 22, 2012
1 parent 0d8bf3a commit 46125c9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/physfs.c
Expand Up @@ -2229,10 +2229,7 @@ PHYSFS_File *PHYSFS_openRead(const char *_fname)

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))
Expand All @@ -2241,8 +2238,7 @@ PHYSFS_File *PHYSFS_openRead(const char *_fname)
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);
Expand Down

0 comments on commit 46125c9

Please sign in to comment.