Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
This returns -1 on error, not zero. :/
  • Loading branch information
icculus committed Feb 7, 2014
1 parent 0163940 commit 2091ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/archiver_zip.c
Expand Up @@ -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.
Expand Down

0 comments on commit 2091ecc

Please sign in to comment.