We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 288b2e2 commit 07db361Copy full SHA for 07db361
1 file changed
minizip.c
@@ -126,7 +126,7 @@ int32_t minizip_list(const char *path) {
126
printf(" ------ -------- ----- ------ ------- ---- ---- ------ ----\n");
127
128
/* Enumerate all entries in the archive */
129
- do {
+ while (err == MZ_OK) {
130
err = mz_zip_reader_entry_get_info(reader, &file_info);
131
132
if (err != MZ_OK) {
@@ -163,7 +163,7 @@ int32_t minizip_list(const char *path) {
163
printf("Error %" PRId32 " going to next entry in archive\n", err);
164
break;
165
}
166
- } while (err == MZ_OK);
+ }
167
168
mz_zip_reader_delete(&reader);
169
0 commit comments