Default compression level only when compressing.

This commit is contained in:
Moinak Ghosh 2013-08-24 23:15:07 +05:30
parent fc65111bae
commit 7685adefb2

View file

@ -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 {