From 7c3f4463206fb3a17f09d1661f73640fdf075b00 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Sat, 14 Jun 2008 10:10:20 -0400 Subject: [PATCH] Minor performance improvement; we lazily skip entries that weren't (or couldn't be) read, so we don't need to proactively skip the body at this point. SVN-Revision: 112 --- libarchive/archive_read_support_format_zip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libarchive/archive_read_support_format_zip.c b/libarchive/archive_read_support_format_zip.c index d6fe88086..694428c53 100644 --- a/libarchive/archive_read_support_format_zip.c +++ b/libarchive/archive_read_support_format_zip.c @@ -564,8 +564,8 @@ archive_read_format_zip_read_data(struct archive_read *a, */ r = ARCHIVE_FATAL; } else { - /* We know compressed size; just skip it. */ - archive_read_format_zip_read_data_skip(a); + /* We can't decompress this entry, but we will + * be able to skip() it and try the next entry. */ r = ARCHIVE_WARN; } break; -- 2.47.3