boot: at least one of os_name_pretty or os_name exists in this block

Closes CID#1438933.
This commit is contained in:
Yu Watanabe
2021-01-12 20:43:02 +09:00
parent 712fffd4b8
commit ecb3e9fba3

View File

@@ -1988,8 +1988,8 @@ static VOID config_entry_add_linux(
path = PoolPrint(L"\\EFI\\Linux\\%s", f->FileName);
entry = config_entry_add_loader(config, device, LOADER_LINUX, f->FileName, 'l',
os_name_pretty ? : (os_name ? : os_id), path,
os_version ? : (os_version_id ? : os_build_id));
os_name_pretty ?: os_name, path,
os_version ?: (os_version_id ? : os_build_id));
FreePool(content);
content = NULL;