summaryrefslogtreecommitdiff
path: root/cmds-restore.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmds-restore.c')
-rw-r--r--cmds-restore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds-restore.c b/cmds-restore.c
index 8cf7a1fa..e1411e91 100644
--- a/cmds-restore.c
+++ b/cmds-restore.c
@@ -812,6 +812,8 @@ static int search_dir(struct btrfs_root *root, struct btrfs_key *key,
goto out;
}
+ ret = 0;
+
leaf = path->nodes[0];
while (!leaf) {
if (verbose > 1)