Added an assert for a FIXME that is now handled elsewhere.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 25 Jul 2017 19:55:58 -0400
changeset 1520 3bb4dd63efa2
parent 1519 3edf28828371
child 1521 0b052d88ca0d
Added an assert for a FIXME that is now handled elsewhere.
src/physfs_archiver_zip.c
--- a/src/physfs_archiver_zip.c	Tue Jul 25 19:55:08 2017 -0400
+++ b/src/physfs_archiver_zip.c	Tue Jul 25 19:55:58 2017 -0400
@@ -1497,7 +1497,7 @@
     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);