summaryrefslogtreecommitdiff
path: root/src/machine
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-07-02 13:44:50 -0400
committerDave Reisner <dreisner@archlinux.org>2013-07-02 13:44:50 -0400
commitaba8b84e8d72224445b67646974b9dabc0972187 (patch)
tree57a981bbf27d9e3df5ca3a79d3771cefd3abae35 /src/machine
parentf526ab7ef046d0e6d8923d4960903bcc807883fb (diff)
machined: check correct return value for NULL
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/machined.c2
1 files changed, 1 insertions, 1 deletions
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)