summaryrefslogtreecommitdiff
path: root/lib/sqfs/comp
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-27 23:49:38 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-28 00:06:07 +0200
commit4fd98d314910c8c6b9bb27702d552cff1fab5c60 (patch)
tree6714511d62663c769a52472033d92f688717652d /lib/sqfs/comp
parentd0cfad79d547d8f72feebbbc522456cc156da4ca (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')
-rw-r--r--lib/sqfs/comp/xz.c2
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;