Skip to content
Permalink
Browse files
This returns -1 on error, not zero. :/
  • Loading branch information
icculus committed Feb 7, 2014
1 parent 0163940 commit 2091eccad3e8af7073ad789b4fb9d8d255ccbfa3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/archiver_zip.c
@@ -429,7 +429,7 @@ static PHYSFS_sint64 zip_find_end_of_central_dir(PHYSFS_Io *io, PHYSFS_sint64 *l
int found = 0;

filelen = io->length(io);
BAIL_IF_MACRO(filelen == -1, ERRPASS, 0);
BAIL_IF_MACRO(filelen == -1, ERRPASS, -1);

/*
* Jump to the end of the file and start reading backwards.

0 comments on commit 2091ecc

Please sign in to comment.