diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2014-01-29 20:13:51 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2014-01-29 20:13:51 +0200 |
commit | 9494fb6d0ff41c585326f00aa8f7fe58f8106a5e (patch) | |
tree | 1259d538c8b4e25ba4c6a9364e676e6837679d21 | |
parent | liblzma: Fix typo in a comment. (diff) | |
download | xz-9494fb6d0ff41c585326f00aa8f7fe58f8106a5e.tar.xz |
liblzma: Fix lzma_mt.preset not working with lzma_stream_encoder_mt().
It read the filter chain from a wrong variable.
-rw-r--r-- | src/liblzma/common/stream_encoder_mt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liblzma/common/stream_encoder_mt.c b/src/liblzma/common/stream_encoder_mt.c index 335110b3..70fe247c 100644 --- a/src/liblzma/common/stream_encoder_mt.c +++ b/src/liblzma/common/stream_encoder_mt.c @@ -1036,8 +1036,8 @@ stream_encoder_mt_init(lzma_next_coder *next, const lzma_allocator *allocator, for (size_t i = 0; next->coder->filters[i].id != LZMA_VLI_UNKNOWN; ++i) lzma_free(next->coder->filters[i].options, allocator); - return_if_error(lzma_filters_copy(options->filters, - next->coder->filters, allocator)); + return_if_error(lzma_filters_copy( + filters, next->coder->filters, allocator)); // Index lzma_index_end(next->coder->index, allocator); |