projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a710c3
)
Remove a check from Block encoder that should have already
author
Lasse Collin
<lasse.collin@tukaani.org>
Thu, 11 Sep 2008 20:09:24 +0000
(23:09 +0300)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Thu, 11 Sep 2008 20:09:24 +0000
(23:09 +0300)
been removed in
2ba01bfa755e47ff6af84a978e3c8d63d7d2775e
.
src/liblzma/common/block_encoder.c
patch
|
blob
|
history
diff --git
a/src/liblzma/common/block_encoder.c
b/src/liblzma/common/block_encoder.c
index
ee75033
..
7dffbb8
100644
(file)
--- a/
src/liblzma/common/block_encoder.c
+++ b/
src/liblzma/common/block_encoder.c
@@
-175,11
+175,6
@@
lzma_block_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
{
lzma_next_coder_init(lzma_block_encoder_init, next, allocator);
- // While lzma_block_total_size_get() is meant to calculate the Total
- // Size, it also validates the options excluding the filters.
- if (lzma_block_total_size_get(options) == 0)
- return LZMA_PROG_ERROR;
-
// If the Check ID is not supported, we cannot calculate the check and
// thus not create a proper Block.
if ((unsigned)(options->check) > LZMA_CHECK_ID_MAX)