]> granicus.if.org Git - xz/commitdiff
Fix the fix 863028cb7ad6d8d0455fa69348f56b376d7b908f which
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 23 Jan 2008 11:13:58 +0000 (13:13 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 23 Jan 2008 11:13:58 +0000 (13:13 +0200)
just moved to problem. Now it's really fixed.

src/liblzma/common/info.c

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