From: Tim Kientzle Date: Sat, 14 Jun 2008 14:10:20 +0000 (-0400) Subject: Minor performance improvement; we lazily skip entries that X-Git-Tag: v2.6.0~180 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c3f4463206fb3a17f09d1661f73640fdf075b00;p=thirdparty%2Flibarchive.git 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 --- 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;