aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2021-01-29 21:19:08 +0200
committerLasse Collin <lasse.collin@tukaani.org>2021-01-29 21:19:08 +0200
commit6c6f0db340dcb8bb424411cedba713405d55f6b8 (patch)
tree4fddabd21c92c02d5fad8e8d2a168beb686c7e4e /src
parentTests: Add bad-1-lzma2-10.xz and also modify -9.xz. (diff)
downloadxz-6c6f0db340dcb8bb424411cedba713405d55f6b8.tar.xz
liblzma: Fix unitialized variable.
This was introduced two weeks ago in the commit 625f4c7c99b2fcc4db9e7ab2deb4884790e2e17c. Thanks to Nathan Moinvaziri.
Diffstat (limited to '')
-rw-r--r--src/liblzma/lzma/lzma_encoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liblzma/lzma/lzma_encoder.c b/src/liblzma/lzma/lzma_encoder.c
index 62bb6343..1f801453 100644
--- a/src/liblzma/lzma/lzma_encoder.c
+++ b/src/liblzma/lzma/lzma_encoder.c
@@ -651,6 +651,7 @@ lzma_lzma_encoder_create(void **coder_ptr,
&& options->preset_dict_size > 0;
coder->is_flushed = false;
coder->uncomp_size = 0;
+ coder->uncomp_size_ptr = NULL;
// Output size limitting is disabled by default.
coder->out_limit = 0;