chiark / gitweb /
machined: check correct return value for NULL
authorDave Reisner <dreisner@archlinux.org>
Tue, 2 Jul 2013 17:44:50 +0000 (13:44 -0400)
committerDave Reisner <dreisner@archlinux.org>
Tue, 2 Jul 2013 17:44:50 +0000 (13:44 -0400)
src/machine/machined.c

index 3cf7f92..86f8de9 100644 (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)