aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-06-11 21:42:47 +0300
committerLasse Collin <lasse.collin@tukaani.org>2008-06-11 21:42:47 +0300
commit803194ddd26f01ff60ba4e9924c6087a56b29827 (patch)
tree31835a23ee2927ce3fa92ec69c543977140216ff
parentImprove command line integer parsing a little in lzma and (diff)
downloadxz-803194ddd26f01ff60ba4e9924c6087a56b29827.tar.xz
Fix uninitialized variable in LZMA encoder. This was
introduced in 369f72fd656f537a9a8e06f13e6d0d4c242be22f.
-rw-r--r--src/liblzma/lzma/lzma_encoder_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/liblzma/lzma/lzma_encoder_init.c b/src/liblzma/lzma/lzma_encoder_init.c
index 306cea8c..c925f811 100644
--- a/src/liblzma/lzma/lzma_encoder_init.c
+++ b/src/liblzma/lzma/lzma_encoder_init.c
@@ -181,6 +181,8 @@ lzma_lzma_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
1U << options->pos_bits,
next->coder->fast_bytes + 1 - MATCH_MIN_LEN);
+ next->coder->prev_len_encoder = NULL;
+
// Misc
next->coder->longest_match_was_found = false;
next->coder->optimum_end_index = 0;