summaryrefslogtreecommitdiff
path: root/lib/common/compress.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-19 23:09:17 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-19 23:09:17 +0100
commit43d38a3c0f8f6e234a75a69df7bc5009f6f3cd85 (patch)
tree58a8e6eeb6aeff051138b8b526d0e7d7a1ca12b3 /lib/common/compress.c
parenta86266d0479316a7ab654a35828ea2abee8a9059 (diff)
Fix compressor availability check in libcommon
Initialize have_compressor to false before testing, to make the check work. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common/compress.c')
-rw-r--r--lib/common/compress.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/common/compress.c b/lib/common/compress.c
index cb4ce10..ea7b71f 100644
--- a/lib/common/compress.c
+++ b/lib/common/compress.c
@@ -54,6 +54,7 @@ void compressor_print_available(void)
SQFS_DEFAULT_BLOCK_SIZE, 0);
ret = sqfs_compressor_create(&cfg, &temp);
+ have_compressor = false;
if (ret == 0) {
sqfs_destroy(temp);