Disable CRC32 from Block Headers when --check=none
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 8 Jan 2008 16:50:30 +0000 (18:50 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 8 Jan 2008 16:50:30 +0000 (18:50 +0200)
has been specified.

src/lzma/process.c

index 10a76b7..1818182 100644 (file)
@@ -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,
                        };