Skip to content

Commit

Permalink
Value stored to 'err' is never read
Browse files Browse the repository at this point in the history
  • Loading branch information
Coeur authored and nmoinvaz committed Nov 1, 2024
1 parent 20c6f56 commit 37be630
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mz_zip_rw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 37be630

Please sign in to comment.