1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Fixed encoding of empty files. Arguments to is_size_valid()

were in wrong order in block_encoder.c.
This commit is contained in:
Lasse Collin 2008-01-08 13:36:29 +02:00
parent 9080267603
commit a751126dbb

View file

@ -327,7 +327,7 @@ block_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
if (!options->has_eopm && options->uncompressed_size == 0) {
// Also Compressed Size must also be zero if it has been
// given to us.
if (!is_size_valid(options->compressed_size, 0))
if (!is_size_valid(0, options->compressed_size))
return LZMA_PROG_ERROR;
next->coder->sequence = SEQ_CHECK_FINISH;