]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Allow nice_len 2 and 3 even if match finder requires 3 or 4.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 24 Nov 2022 21:24:59 +0000 (23:24 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 24 Nov 2022 21:24:59 +0000 (23:24 +0200)
Now that liblzma accepts these, we avoid the extra check and
there's one message less for translators too.

src/xz/options.c

index 0c1ee221b22e57abe74782df2554fc780ee5b8c1..b434b0cf00baf25cbe0a7866817b26cdcf4614af 100644 (file)
@@ -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;
 }