Browse Source

Added an assert for a FIXME that is now handled elsewhere.

Ryan C. Gordon 8 năm trước cách đây
mục cha
commit
0e7f3ee6a1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/physfs_archiver_zip.c

+ 1 - 1
src/physfs_archiver_zip.c

@@ -1497,7 +1497,7 @@ static PHYSFS_Io *zip_get_io(PHYSFS_Io *io, ZIPinfo *inf, ZIPentry *entry)
     PHYSFS_Io *retval = io->duplicate(io);
     PHYSFS_Io *retval = io->duplicate(io);
     BAIL_IF_ERRPASS(!retval, NULL);
     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. */
     /* (inf) can be NULL if we already resolved. */
     success = (inf == NULL) || zip_resolve(retval, inf, entry);
     success = (inf == NULL) || zip_resolve(retval, inf, entry);