aboutsummaryrefslogtreecommitdiffstats
path: root/e2fsck/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsck/unix.c')
-rw-r--r--e2fsck/unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsck/unix.c b/e2fsck/unix.c
index 6471592a..51eeb251 100644
--- a/e2fsck/unix.c
+++ b/e2fsck/unix.c
@@ -1062,7 +1062,7 @@ static errcode_t try_open_fs(e2fsck_t ctx, int flags, io_manager io_ptr,
retval = ext2fs_open2(ctx->filesystem_name, ctx->io_options,
flags, 0, 0, io_ptr, ret_fs);
- if (ret_fs)
+ if (retval == 0)
e2fsck_set_bitmap_type(*ret_fs, EXT2FS_BMAP64_RBTREE,
"default", NULL);
return retval;