1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

liblzma: Fix unitialized variable.

This was introduced two weeks ago in the commit
625f4c7c99.

Thanks to Nathan Moinvaziri.
This commit is contained in:
Lasse Collin 2021-01-29 21:19:08 +02:00
parent bb1d5c1fdd
commit 6c6f0db340

View file

@ -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;