Fix test for length 2 matches
authorEric Biggers <ebiggers3@gmail.com>
Mon, 30 Dec 2013 02:02:50 +0000 (20:02 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Wed, 1 Jan 2014 16:04:48 +0000 (10:04 -0600)
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,