summaryrefslogtreecommitdiff
path: root/btrfs-convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'btrfs-convert.c')
-rw-r--r--btrfs-convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-convert.c b/btrfs-convert.c
index 5b9171ee..02e5cdba 100644
--- a/btrfs-convert.c
+++ b/btrfs-convert.c
@@ -1449,7 +1449,7 @@ static struct btrfs_root * link_subvol(struct btrfs_root *root,
int ret;
len = strlen(base);
- if (len < 1 || len > BTRFS_NAME_LEN)
+ if (len == 0 || len > BTRFS_NAME_LEN)
return NULL;
path = btrfs_alloc_path();