machined: check correct return value for NULL

This commit is contained in:
Dave Reisner
2013-07-02 13:44:50 -04:00
parent f526ab7ef0
commit aba8b84e8d
+1 -1
View File
@@ -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)