Skip to content

Commit

Permalink
Fixed listing empty zip file. #756
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Jun 1, 2024
1 parent 288b2e2 commit 07db361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minizip.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ int32_t minizip_list(const char *path) {
printf(" ------ -------- ----- ------ ------- ---- ---- ------ ----\n");

/* Enumerate all entries in the archive */
do {
while (err == MZ_OK) {
err = mz_zip_reader_entry_get_info(reader, &file_info);

if (err != MZ_OK) {
Expand Down Expand Up @@ -163,7 +163,7 @@ int32_t minizip_list(const char *path) {
printf("Error %" PRId32 " going to next entry in archive\n", err);
break;
}
} while (err == MZ_OK);
}

mz_zip_reader_delete(&reader);

Expand Down

0 comments on commit 07db361

Please sign in to comment.