Message ID | 20170927063440.25961-4-suy.fnst@cn.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/cmds-check.c b/cmds-check.c index 3e2f9faa..adc4a934 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -14646,8 +14646,8 @@ int cmd_check(int argc, char **argv) if (!init_extent_tree) { ret = repair_root_items(info); - err |= !!ret; if (ret < 0) { + err = !!ret; error("failed to repair root items: %s", strerror(-ret)); goto close_out;