aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-21 17:41:47 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-21 17:41:47 +0100
commitc7056c1853b5defd5b933e651bf58dc94b4d3f8b (patch)
tree0d209cbaebf8a68da7bd6f985099c82d11e491b0 /lib
parent504cdc0b22406bd3c28b16c69deaaba7be104923 (diff)
Fix missing error code initialization
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/sqfs/block_processor/common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqfs/block_processor/common.c b/lib/sqfs/block_processor/common.c
index 62c355b..6a0015b 100644
--- a/lib/sqfs/block_processor/common.c
+++ b/lib/sqfs/block_processor/common.c
@@ -362,8 +362,10 @@ int sqfs_block_processor_create_ex(const sqfs_block_processor_desc_t *desc,
proc->workers = worker;
worker->cmp = sqfs_copy(desc->cmp);
- if (worker->cmp == NULL)
+ if (worker->cmp == NULL) {
+ ret = SQFS_ERROR_ALLOC;
goto fail_pool;
+ }
proc->pool->set_worker_ptr(proc->pool, i, worker);
}