From 4fd98d314910c8c6b9bb27702d552cff1fab5c60 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 27 Sep 2019 23:49:38 +0200 Subject: 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 --- lib/sqfs/comp/xz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqfs') 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; -- cgit v1.2.3