mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
Merge pull request #18212 from yuwata/two-coverity-fixes
Two coverity fixes
This commit is contained in:
commit
885598f36c
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user