diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-01-12 20:43:02 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-01-12 20:43:06 +0900 |
commit | ecb3e9fba368d5fa5c6241bdb7b4d97fd6827d7b (patch) | |
tree | d965c7fa2b2d230cbd58d6d550e5ff2bad1a6200 /src/boot | |
parent | 712fffd4b80fcc37ae96a18dd1d930b872d68f6b (diff) | |
download | systemd-ecb3e9fba368d5fa5c6241bdb7b4d97fd6827d7b.tar.gz |
boot: at least one of os_name_pretty or os_name exists in this block
Closes CID#1438933.
Diffstat (limited to 'src/boot')
-rw-r--r-- | src/boot/efi/boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 938e5645f9..60305f07f9 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -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; |