Skip to content

Commit

Permalink
Added an assert for a FIXME that is now handled elsewhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 25, 2017
1 parent f578f85 commit 0e7f3ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physfs_archiver_zip.c
Expand Up @@ -1497,7 +1497,7 @@ static PHYSFS_Io *zip_get_io(PHYSFS_Io *io, ZIPinfo *inf, ZIPentry *entry)
PHYSFS_Io *retval = io->duplicate(io);
BAIL_IF_ERRPASS(!retval, NULL);

/* !!! FIXME: if you open a dir here, it should bail ERR_NOT_A_FILE */
assert(!entry->tree.isdir); /* should have been checked before calling. */

/* (inf) can be NULL if we already resolved. */
success = (inf == NULL) || zip_resolve(retval, inf, entry);
Expand Down

0 comments on commit 0e7f3ee

Please sign in to comment.