aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-01-23 13:13:58 +0200
committerLasse Collin <lasse.collin@tukaani.org>2008-01-23 13:13:58 +0200
commit4d8cdbdab44400fd98f0f18a0f701e27cd1acdae (patch)
tree0c1662a84ce91a5ee00ee27d416885ddd198b2de /src/liblzma
parentTake advantage of return_if_error() macro in (diff)
downloadxz-4d8cdbdab44400fd98f0f18a0f701e27cd1acdae.tar.xz
Fix the fix 863028cb7ad6d8d0455fa69348f56b376d7b908f which
just moved to problem. Now it's really fixed.
Diffstat (limited to '')
-rw-r--r--src/liblzma/common/info.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/liblzma/common/info.c b/src/liblzma/common/info.c
index aee25463..b05bd031 100644
--- a/src/liblzma/common/info.c
+++ b/src/liblzma/common/info.c
@@ -385,7 +385,10 @@ lzma_info_metadata_set(lzma_info *info, lzma_allocator *allocator,
const lzma_ret ret = lzma_info_index_set(
info, allocator, metadata->index, eat_index);
- metadata->index = NULL;
+
+ if (eat_index)
+ metadata->index = NULL;
+
if (ret != LZMA_OK)
return ret;