summaryrefslogtreecommitdiff
path: root/tar/sqfs2tar.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-20 22:17:20 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-20 22:17:20 +0200
commit1a6b70f3702d3bdb0f1cb8e4669ec5ed21ea923b (patch)
treee35835e7497b12e96dbddd072b2fdd189f448990 /tar/sqfs2tar.c
parente43be03653011f507901986cd9ff559cf20eb9cc (diff)
Split data reader constructor and fragment table loading
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tar/sqfs2tar.c')
-rw-r--r--tar/sqfs2tar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tar/sqfs2tar.c b/tar/sqfs2tar.c
index c624934..7f388fe 100644
--- a/tar/sqfs2tar.c
+++ b/tar/sqfs2tar.c
@@ -434,8 +434,11 @@ int main(int argc, char **argv)
goto out_id;
}
- data = data_reader_create(file, &super, cmp);
+ data = data_reader_create(file, super.block_size, cmp);
if (data == NULL)
+ goto out_id;
+
+ if (data_reader_load_fragment_table(data, &super))
goto out_data;
dr = sqfs_dir_reader_create(&super, cmp, file);