From aba8b84e8d72224445b67646974b9dabc0972187 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 2 Jul 2013 13:44:50 -0400 Subject: machined: check correct return value for NULL --- src/machine/machined.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/machined.c b/src/machine/machined.c index 3cf7f92f96..86f8de9195 100644 --- a/src/machine/machined.c +++ b/src/machine/machined.c @@ -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) -- cgit v1.2.3-54-g00ecf