This returns -1 on error, not zero. :/
authorRyan C. Gordon <icculus@icculus.org>
Fri, 07 Feb 2014 16:23:12 -0500
changeset 1345 29ab417d9453
parent 1344 3862cf505e99
child 1347 93b2026e4964
This returns -1 on error, not zero. :/
src/archiver_zip.c
--- a/src/archiver_zip.c	Fri Feb 07 16:22:43 2014 -0500
+++ b/src/archiver_zip.c	Fri Feb 07 16:23:12 2014 -0500
@@ -429,7 +429,7 @@
     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.