]> granicus.if.org Git - xz/commitdiff
Fix uninitialized variables in alone_decoder.c. This bug was
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 28 Jan 2009 06:43:26 +0000 (08:43 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 28 Jan 2009 06:43:26 +0000 (08:43 +0200)
triggered by the previous commit, since these variables were
not used by anything before support for a preset dictionary.

src/liblzma/common/alone_decoder.c

index e850a926646e805e71d8bd9bf463903ee982a974..c822f04c21eb38a3b33385397e6aad57b7fd8496 100644 (file)
@@ -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;