summaryrefslogtreecommitdiff
path: root/src/boot/boot-efi.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-02-17 22:28:21 +0100
committerKay Sievers <kay@vrfy.org>2013-02-17 22:28:21 +0100
commit71bf4f6f6c450e111795054e1bc50da692202c31 (patch)
tree0fdcebcc410771ef885572115c0393b0f397b107 /src/boot/boot-efi.c
parent7962afbba9016ea03d9f2987fee341443fcde39d (diff)
bootctl: show "n/a" for empty boot option labels
Diffstat (limited to 'src/boot/boot-efi.c')
-rw-r--r--src/boot/boot-efi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/boot/boot-efi.c b/src/boot/boot-efi.c
index faa86805d4..51f12c0c1a 100644
--- a/src/boot/boot-efi.c
+++ b/src/boot/boot-efi.c
@@ -75,7 +75,13 @@ static int get_boot_entries(struct boot_info *info) {
err = efi_get_boot_option(list[i], &e->title, &e->part_uuid, &e->path);
if (err < 0)
continue;
+
+ if (isempty(e->title)) {
+ free(e->title);
+ e->title = NULL;
+ }
tilt_slashes(e->path);
+
e->id = list[i];
info->fw_entries_count++;
}