1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-09-09 17:45:00 +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
2 changed files with 3 additions and 3 deletions

View File

@@ -1988,7 +1988,7 @@ 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_name_pretty ?: os_name, path,
os_version ?: (os_version_id ? : os_build_id));
FreePool(content);

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);