From 71bf4f6f6c450e111795054e1bc50da692202c31 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 17 Feb 2013 22:28:21 +0100 Subject: bootctl: show "n/a" for empty boot option labels --- src/boot/boot-efi.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/boot/boot-efi.c') 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++; } -- cgit v1.2.3-54-g00ecf