mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
machined: check correct return value for NULL
This commit is contained in:
parent
f526ab7ef0
commit
aba8b84e8d
@ -98,7 +98,7 @@ int manager_add_machine(Manager *m, const char *name, Machine **_machine) {
|
||||
}
|
||||
|
||||
machine = machine_new(m, name);
|
||||
if (!m)
|
||||
if (!machine)
|
||||
return -ENOMEM;
|
||||
|
||||
if (_machine)
|
||||
|
Loading…
Reference in New Issue
Block a user