Skip to content

Commit

Permalink
Update zip.c (kuba--#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-- authored and thabetx committed Sep 7, 2023
1 parent 5b51fa1 commit 99ac5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ int zip_entry_close(struct zip_t *zip) {
}

level = zip->level & 0xF;
if (level && zip->entry.uncomp_size) {
if (level) {
done = tdefl_compress_buffer(&(zip->entry.comp), "", 0, TDEFL_FINISH);
if (done != TDEFL_STATUS_DONE && done != TDEFL_STATUS_OKAY) {
// Cannot flush compressed buffer
Expand Down

0 comments on commit 99ac5cb

Please sign in to comment.