diff options
Diffstat (limited to 'difftool/sqfsdiff.c')
-rw-r--r-- | difftool/sqfsdiff.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/difftool/sqfsdiff.c b/difftool/sqfsdiff.c index 6d1a9af..22b8ec6 100644 --- a/difftool/sqfsdiff.c +++ b/difftool/sqfsdiff.c @@ -69,14 +69,19 @@ static int open_sfqs(sqfs_state_t *state, const char *path) goto fail_dr; } - state->data = data_reader_create(state->file, &state->super, + state->data = data_reader_create(state->file, state->super.block_size, state->cmp); if (state->data == NULL) { fprintf(stderr, "%s: error loading file system tree\n", path); goto fail_tree; } + if (data_reader_load_fragment_table(state->data, &state->super)) + goto fail_data; + return 0; +fail_data: + data_reader_destroy(state->data); fail_tree: sqfs_dir_tree_destroy(state->root); fail_dr: |