]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix build failure without zlib on Windows; avoid unreachable code.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 27 Feb 2012 08:29:47 +0000 (17:29 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 27 Feb 2012 08:29:47 +0000 (17:29 +0900)
libarchive/archive_read_support_format_zip.c

index 9e7f9a9a0afe98a3d83db1ae95988fa324283215..8b5e86a12539c8e29b59b8052de3e70d91926ad0 100644 (file)
@@ -1165,7 +1165,7 @@ archive_read_format_zip_read_data_skip(struct archive_read *a)
                        if (r != ARCHIVE_OK)
                                return (r);
                }
-               break;
+               return ARCHIVE_OK;
 #endif
        default: /* Uncompressed or unknown. */
                /* Scan for a PK\007\010 signature. */
@@ -1194,7 +1194,6 @@ archive_read_format_zip_read_data_skip(struct archive_read *a)
                        zip_read_consume(a, p - buff);
                }
        }
-       return ARCHIVE_OK;
 }
 
 static int