diff options
Diffstat (limited to 'lib/common')
-rw-r--r-- | lib/common/src/writer/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common/src/writer/init.c b/lib/common/src/writer/init.c index 60d7a12..bf1d2ca 100644 --- a/lib/common/src/writer/init.c +++ b/lib/common/src/writer/init.c @@ -57,9 +57,9 @@ int sqfs_writer_init(sqfs_writer_t *sqfs, const sqfs_writer_cfg_t *wrcfg) return -1; } - sqfs->outfile = sqfs_open_file(wrcfg->filename, wrcfg->outmode); - if (sqfs->outfile == NULL) { - perror(wrcfg->filename); + ret = sqfs_file_open(&sqfs->outfile, wrcfg->filename, wrcfg->outmode); + if (ret) { + sqfs_perror(wrcfg->filename, "open", ret); return -1; } |