From 7685adefb201889937524fc9574d056ff735c17a Mon Sep 17 00:00:00 2001 From: Moinak Ghosh Date: Sat, 24 Aug 2013 23:15:07 +0530 Subject: [PATCH] Default compression level only when compressing. --- pcompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcompress.c b/pcompress.c index 43b8f9c..9eec894 100644 --- a/pcompress.c +++ b/pcompress.c @@ -2748,7 +2748,7 @@ init_pc_context(pc_ctx_t *pctx, int argc, char *argv[]) return (2); } - if (pctx->level == -1) { + if (pctx->level == -1 && pctx->do_compress) { if (memcmp(pctx->algo, "lz4", 3) == 0) { pctx->level = 1; } else {