diff options
Diffstat (limited to 'builtin-archive.c')
-rw-r--r-- | builtin-archive.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-archive.c b/builtin-archive.c index d5e3af879e..cff6ce7de3 100644 --- a/builtin-archive.c +++ b/builtin-archive.c @@ -185,9 +185,10 @@ int parse_archive_args(int argc, const char **argv, const struct archiver **ar, if (!*ar) die("Unknown archive format '%s'", format); + args->compression_level = Z_DEFAULT_COMPRESSION; if (compression_level != -1) { if ((*ar)->flags & USES_ZLIB_COMPRESSION) - zlib_compression_level = compression_level; + args->compression_level = compression_level; else { die("Argument not supported for format '%s': -%d", format, compression_level); |