summaryrefslogtreecommitdiff
path: root/cmds-check.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmds-check.c')
-rw-r--r--cmds-check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-check.c b/cmds-check.c
index d2d218a8..6c87d1a4 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -3468,7 +3468,7 @@ static int fix_key_order(struct btrfs_trans_handle *trans,
struct btrfs_key k1, k2;
int i;
int level = path->lowest_level;
- int ret;
+ int ret = -EIO;
buf = path->nodes[level];
for (i = 0; i < btrfs_header_nritems(buf) - 1; i++) {