diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-07-24 19:39:26 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-07-24 19:42:48 +0200 |
commit | 948a871c7348a4cfd9caa1e797d17e503c095a63 (patch) | |
tree | 4128f74f0664a4a05c677acd60e3bef7061e4284 /src/Common/libzip/zip_progress.c | |
parent | 5cf7d946d2e1d68065c772c9e76ba7dad52e96f9 (diff) | |
download | VeraCrypt-948a871c7348a4cfd9caa1e797d17e503c095a63.tar.gz VeraCrypt-948a871c7348a4cfd9caa1e797d17e503c095a63.zip |
Windows: update libzip to latest version 1.7.3 (close issue #656)
Diffstat (limited to 'src/Common/libzip/zip_progress.c')
-rw-r--r-- | src/Common/libzip/zip_progress.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Common/libzip/zip_progress.c b/src/Common/libzip/zip_progress.c index d48ae563..ddb47c70 100644 --- a/src/Common/libzip/zip_progress.c +++ b/src/Common/libzip/zip_progress.c @@ -209,10 +209,8 @@ _zip_progress_update(zip_progress_t *progress, double sub_current) { ZIP_EXTERN int zip_register_progress_callback_with_state(zip_t *za, double precision, zip_progress_callback callback, void (*ud_free)(void *), void *ud) { - zip_progress_t *progress = NULL; - if (callback != NULL) { - if (za->progress == NULL) { + if (za->progress == NULL) { if ((za->progress = _zip_progress_new(za)) == NULL) { return -1; } @@ -238,10 +236,8 @@ zip_register_progress_callback_with_state(zip_t *za, double precision, zip_progr ZIP_EXTERN int zip_register_cancel_callback_with_state(zip_t *za, zip_cancel_callback callback, void (*ud_free)(void *), void *ud) { - zip_progress_t *progress = NULL; - if (callback != NULL) { - if (za->progress == NULL) { + if (za->progress == NULL) { if ((za->progress = _zip_progress_new(za)) == NULL) { return -1; } |