From 37be630aeb54de84c5d3b04191b810b46a32cd70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Fri, 1 Nov 2024 11:42:22 +0100 Subject: [PATCH] Value stored to 'err' is never read --- mz_zip_rw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mz_zip_rw.c b/mz_zip_rw.c index 405e6a53..7dba0385 100644 --- a/mz_zip_rw.c +++ b/mz_zip_rw.c @@ -1344,8 +1344,9 @@ int32_t mz_zip_writer_entry_open(void *handle, mz_zip_file *file_info) { #endif /* Open entry in zip */ - err = mz_zip_entry_write_open(writer->zip_handle, &writer->file_info, writer->compress_level, - writer->raw, password); + if (err == MZ_OK) + err = mz_zip_entry_write_open(writer->zip_handle, &writer->file_info, writer->compress_level, + writer->raw, password); return err; }