diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-07-02 13:44:50 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-07-02 13:44:50 -0400 |
commit | aba8b84e8d72224445b67646974b9dabc0972187 (patch) | |
tree | 57a981bbf27d9e3df5ca3a79d3771cefd3abae35 /src | |
parent | f526ab7ef046d0e6d8923d4960903bcc807883fb (diff) |
machined: check correct return value for NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/machine/machined.c | 2 |
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) |