Skip to content

Commit 807ea61

Browse files
committed
Fix build failure without zlib on Windows; avoid unreachable code.
1 parent 78f7749 commit 807ea61

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

libarchive/archive_read_support_format_zip.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ archive_read_format_zip_read_data_skip(struct archive_read *a)
11651165
if (r != ARCHIVE_OK)
11661166
return (r);
11671167
}
1168-
break;
1168+
return ARCHIVE_OK;
11691169
#endif
11701170
default: /* Uncompressed or unknown. */
11711171
/* Scan for a PK\007\010 signature. */
@@ -1194,7 +1194,6 @@ archive_read_format_zip_read_data_skip(struct archive_read *a)
11941194
zip_read_consume(a, p - buff);
11951195
}
11961196
}
1197-
return ARCHIVE_OK;
11981197
}
11991198

12001199
static int

0 commit comments

Comments
 (0)