]> wimlib.net Git - wimlib/blobdiff - src/lzx-compress.c
Fix test for length 2 matches
[wimlib] / src / lzx-compress.c
index 58806632de377a34857d9109d9b401a032d50ea3..056dc83bb52944c63ad9b98cdad8f966b2340e76 100644 (file)
@@ -1993,7 +1993,7 @@ lzx_create_compressor(size_t window_size,
 
        if (params->algorithm == WIMLIB_LZX_ALGORITHM_SLOW) {
                unsigned min_match_len = LZX_MIN_MATCH_LEN;
-               if (!ctx->params.alg_params.slow.use_len2_matches)
+               if (!params->alg_params.slow.use_len2_matches)
                        min_match_len = max(min_match_len, 3);
 
                if (!lz_sarray_init(&ctx->lz_sarray,