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 {