diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-01-28 08:43:26 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-01-28 08:43:26 +0200 |
commit | 3241317093595db9f79104faafe93cb989c9f858 (patch) | |
tree | 12bcf286580d286ef00948acf64e3e1c41e8f009 /src | |
parent | Added initial support for preset dictionary for raw LZMA1 (diff) | |
download | xz-3241317093595db9f79104faafe93cb989c9f858.tar.xz |
Fix uninitialized variables in alone_decoder.c. This bug was
triggered by the previous commit, since these variables were
not used by anything before support for a preset dictionary.
Diffstat (limited to 'src')
-rw-r--r-- | src/liblzma/common/alone_decoder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/liblzma/common/alone_decoder.c b/src/liblzma/common/alone_decoder.c index e850a926..c822f04c 100644 --- a/src/liblzma/common/alone_decoder.c +++ b/src/liblzma/common/alone_decoder.c @@ -214,6 +214,8 @@ lzma_alone_decoder_init(lzma_next_coder *next, lzma_allocator *allocator, next->coder->sequence = SEQ_PROPERTIES; next->coder->pos = 0; next->coder->options.dict_size = 0; + next->coder->options.preset_dict = NULL; + next->coder->options.preset_dict_size = 0; next->coder->uncompressed_size = 0; next->coder->memlimit = memlimit; next->coder->memusage = LZMA_MEMUSAGE_BASE; |