aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-01-08 18:50:30 +0200
committerLasse Collin <lasse.collin@tukaani.org>2008-01-08 18:50:30 +0200
commitfaeac7b7aca75f86afed1e7cc06279d9d497c627 (patch)
treedfa0633b73704f90bc66ed0147a8b66a3212bb7b
parentFixed encoding of empty files. Arguments to is_size_valid() (diff)
downloadxz-faeac7b7aca75f86afed1e7cc06279d9d497c627.tar.xz
Disable CRC32 from Block Headers when --check=none
has been specified.
-rw-r--r--src/lzma/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lzma/process.c b/src/lzma/process.c
index 10a76b74..18181826 100644
--- a/src/lzma/process.c
+++ b/src/lzma/process.c
@@ -175,7 +175,7 @@ single_init(thread_data *t)
} else {
lzma_options_stream stream = {
.check = opt_check,
- .has_crc32 = true,
+ .has_crc32 = opt_check != LZMA_CHECK_NONE,
.uncompressed_size = uncompressed_size,
.alignment = 0,
};