summaryrefslogtreecommitdiff
path: root/tar/sqfs2tar.c
diff options
context:
space:
mode:
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);