VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/libzip/zip_fread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/libzip/zip_fread.c')
-rw-r--r--src/Common/libzip/zip_fread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Common/libzip/zip_fread.c b/src/Common/libzip/zip_fread.c
index 22fabe39..5b7da46a 100644
--- a/src/Common/libzip/zip_fread.c
+++ b/src/Common/libzip/zip_fread.c
@@ -50,11 +50,12 @@ zip_fread(zip_file_t *zf, void *outbuf, zip_uint64_t toread) {
return -1;
}
- if ((zf->eof) || (toread == 0))
+ if (toread == 0) {
return 0;
+ }
if ((n = zip_source_read(zf->src, outbuf, toread)) < 0) {
- _zip_error_set_from_source(&zf->error, zf->src);
+ zip_error_set_from_source(&zf->error, zf->src);
return -1;
}