summaryrefslogtreecommitdiff
path: root/lib/sqfs/process_block.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs/process_block.c')
-rw-r--r--lib/sqfs/process_block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/process_block.c b/lib/sqfs/process_block.c
index 2658ee7..2c1395f 100644
--- a/lib/sqfs/process_block.c
+++ b/lib/sqfs/process_block.c
@@ -27,7 +27,7 @@ int sqfs_block_process(sqfs_block_t *block, sqfs_compressor_t *cmp,
scratch, scratch_size);
if (ret < 0)
- return -1;
+ return ret;
if (ret > 0) {
memcpy(block->data, scratch, ret);