chiark / gitweb /
core: Forgot to dereference pointer when checking for NULL
[elogind.git] / src / core / execute.c
index 6ae9a5eb71ebb0c54816879cf3989d058c922fd9..7f93c0c3b1ebd8a0728e2a3bd85a7e57977b937c 100644 (file)
@@ -2282,7 +2282,7 @@ static int exec_runtime_allocate(ExecRuntime **rt) {
                 return 0;
 
         *rt = new0(ExecRuntime, 1);
-        if (!rt)
+        if (!*rt)
                 return -ENOMEM;
 
         (*rt)->n_ref = 1;