diff options
Diffstat (limited to 'src/boot/boot-efi.c')
-rw-r--r-- | src/boot/boot-efi.c | 6 |
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++; } |