summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sqfs/data_reader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqfs/data_reader.c b/lib/sqfs/data_reader.c
index 18719fe..e33ffbb 100644
--- a/lib/sqfs/data_reader.c
+++ b/lib/sqfs/data_reader.c
@@ -185,9 +185,9 @@ int data_reader_dump_file(data_reader_t *data, file_info_t *fi, int outfd,
if (allow_sparse) {
if (lseek(outfd, diff, SEEK_CUR) == (off_t)-1)
goto fail_sparse;
- } else {
- memset(data->block, 0, diff);
+ continue;
}
+ memset(data->block, 0, diff);
} else {
if (precache_data_block(data, off, fi->blocks[i].size))
return -1;