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
1 changed files with 1 additions and 0 deletions

View File

@ -651,6 +651,7 @@ lzma_lzma_encoder_create(void **coder_ptr,
&& options->preset_dict_size > 0; && options->preset_dict_size > 0;
coder->is_flushed = false; coder->is_flushed = false;
coder->uncomp_size = 0; coder->uncomp_size = 0;
coder->uncomp_size_ptr = NULL;
// Output size limitting is disabled by default. // Output size limitting is disabled by default.
coder->out_limit = 0; coder->out_limit = 0;