VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/libzip/zip_fseek.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/libzip/zip_fseek.c')
-rw-r--r--src/Common/libzip/zip_fseek.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Common/libzip/zip_fseek.c b/src/Common/libzip/zip_fseek.c
index e68ffd36..107a6f73 100644
--- a/src/Common/libzip/zip_fseek.c
+++ b/src/Common/libzip/zip_fseek.c
@@ -1,6 +1,6 @@
/*
zip_fseek.c -- seek in file
- Copyright (C) 2016-2021 Dieter Baron and Thomas Klausner
+ Copyright (C) 2016-2024 Dieter Baron and Thomas Klausner
This file is part of libzip, a library to manipulate ZIP archives.
The authors can be contacted at <info@libzip.org>
@@ -36,11 +36,13 @@
ZIP_EXTERN zip_int8_t
zip_fseek(zip_file_t *zf, zip_int64_t offset, int whence) {
- if (!zf)
+ if (zf == NULL) {
return -1;
+ }
- if (zf->error.zip_err != 0)
+ if (zf->error.zip_err != 0) {
return -1;
+ }
if (zip_source_seek(zf->src, offset, whence) < 0) {
zip_error_set_from_source(&zf->error, zf->src);
@@ -53,7 +55,7 @@ zip_fseek(zip_file_t *zf, zip_int64_t offset, int whence) {
ZIP_EXTERN int
zip_file_is_seekable(zip_file_t *zfile) {
- if (!zfile) {
+ if (zfile == NULL) {
return -1;
}