mirror of https://git.tukaani.org/xz.git
Fix uninitialized variable in LZMA encoder. This was
introduced in 369f72fd65
.
This commit is contained in:
parent
0ea98e52ba
commit
803194ddd2
|
@ -181,6 +181,8 @@ lzma_lzma_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
|
||||||
1U << options->pos_bits,
|
1U << options->pos_bits,
|
||||||
next->coder->fast_bytes + 1 - MATCH_MIN_LEN);
|
next->coder->fast_bytes + 1 - MATCH_MIN_LEN);
|
||||||
|
|
||||||
|
next->coder->prev_len_encoder = NULL;
|
||||||
|
|
||||||
// Misc
|
// Misc
|
||||||
next->coder->longest_match_was_found = false;
|
next->coder->longest_match_was_found = false;
|
||||||
next->coder->optimum_end_index = 0;
|
next->coder->optimum_end_index = 0;
|
||||||
|
|
Loading…
Reference in New Issue