aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfs/block_processor
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-06-07 20:54:07 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-06-07 20:54:07 +0200
commit04be64583149515f774bf01f03b1be6121649668 (patch)
treed6cd4de2d065265c4a562e98b93949ad1c81acda /lib/sqfs/block_processor
parent80f0530aab737505ca16519b1b91dc6a4f74411b (diff)
Fix uninitialized error code in block processor error path
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/block_processor')
-rw-r--r--lib/sqfs/block_processor/common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqfs/block_processor/common.c b/lib/sqfs/block_processor/common.c
index 25a15c2..9c80502 100644
--- a/lib/sqfs/block_processor/common.c
+++ b/lib/sqfs/block_processor/common.c
@@ -253,6 +253,7 @@ static int process_completed_fragment(sqfs_block_processor_t *proc,
}
if (proc->frag_tbl != NULL) {
+ err = SQFS_ERROR_ALLOC;
chunk = calloc(1, sizeof(*chunk));
if (chunk == NULL)
goto fail_outblk;