diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index d0a3bce159..54d704f0d1 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -1722,7 +1722,7 @@ static ConfigEntry *config_entry_add_loader( *entry = (ConfigEntry) { .type = type, .title = StrDuplicate(title), - .version = StrDuplicate(version), + .version = version ? StrDuplicate(version) : NULL, .device = device, .loader = StrDuplicate(loader), .id = StrDuplicate(id),