diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-27 23:49:38 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-28 00:06:07 +0200 |
commit | 4fd98d314910c8c6b9bb27702d552cff1fab5c60 (patch) | |
tree | 6714511d62663c769a52472033d92f688717652d /lib/sqfs/comp/xz.c | |
parent | d0cfad79d547d8f72feebbbc522456cc156da4ca (diff) |
Fix lzma2 VLI filter testing
Starting out with 0, makes the loop condition evaluate to false and
none of the filters are tested.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/comp/xz.c')
-rw-r--r-- | lib/sqfs/comp/xz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/comp/xz.c b/lib/sqfs/comp/xz.c index 9e03df8..fd0f70b 100644 --- a/lib/sqfs/comp/xz.c +++ b/lib/sqfs/comp/xz.c @@ -152,7 +152,7 @@ static sqfs_s32 xz_comp_block(sqfs_compressor_t *base, const sqfs_u8 *in, smallest = ret; - for (i = 0; i & SQFS_COMP_FLAG_XZ_ALL; i <<= 1) { + for (i = 1; i & SQFS_COMP_FLAG_XZ_ALL; i <<= 1) { if ((xz->flags & i) == 0) continue; |