1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00

Merge pull request #18212 from yuwata/two-coverity-fixes

Two coverity fixes
This commit is contained in:
Yu Watanabe 2021-01-13 00:57:34 +09:00 committed by GitHub
commit 885598f36c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

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;

View File

@ -1516,8 +1516,8 @@ _public_ int sd_bus_open_system_remote(sd_bus **ret, const char *host) {
}
int bus_set_address_machine(sd_bus *b, bool user, const char *machine) {
_cleanup_free_ char *a = NULL;
const char *rhs;
char *a;
assert(b);
assert(machine);