]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Minor performance improvement; we lazily skip entries that
authorTim Kientzle <kientzle@gmail.com>
Sat, 14 Jun 2008 14:10:20 +0000 (10:10 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 14 Jun 2008 14:10:20 +0000 (10:10 -0400)
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

index d6fe8808621600f7917b385ee91dc2e5543d3673..694428c5322210e3fcbe11a50fb366ebaa6d0aa5 100644 (file)
@@ -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;