aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-11-24 23:24:59 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-11-24 23:24:59 +0200
commit5cd9f0df78cc4f8a7807bf6104adea13034fbb45 (patch)
treeb41f39fc378b2d3d62daea8d386915bbb538d9bc /src
parentliblzma: Allow nice_len 2 and 3 even if match finder requires 3 or 4. (diff)
downloadxz-5cd9f0df78cc4f8a7807bf6104adea13034fbb45.tar.xz
xz: Allow nice_len 2 and 3 even if match finder requires 3 or 4.
Now that liblzma accepts these, we avoid the extra check and there's one message less for translators too.
Diffstat (limited to 'src')
-rw-r--r--src/xz/options.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/xz/options.c b/src/xz/options.c
index 0c1ee221..b434b0cf 100644
--- a/src/xz/options.c
+++ b/src/xz/options.c
@@ -354,10 +354,5 @@ options_lzma(const char *str)
if (options->lc + options->lp > LZMA_LCLP_MAX)
message_fatal(_("The sum of lc and lp must not exceed 4"));
- const uint32_t nice_len_min = options->mf & 0x0F;
- if (options->nice_len < nice_len_min)
- message_fatal(_("The selected match finder requires at "
- "least nice=%" PRIu32), nice_len_min);
-
return options;
}