summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/boot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/boot.c b/commands/boot.c
index ad2d83a179..d7795bde72 100644
--- a/commands/boot.c
+++ b/commands/boot.c
@@ -76,6 +76,8 @@ static int do_boot(int argc, char *argv[])
entries = bootentries_alloc();
while ((name = next(&handle)) != NULL) {
+ if (!*name)
+ continue;
ret = bootentry_create_from_name(entries, name);
if (ret <= 0)
printf("Nothing bootable found on '%s'\n", name);