chiark / gitweb /
specifier: rework specifier calls to return proper error message
[elogind.git] / src / core / service.c
index 246a86e23f3cda577a46ee5d286e5051278c1695..cc61b546fc831c0d4913dc1c4a385c583a1b7865 100644 (file)
@@ -1765,11 +1765,9 @@ static int service_spawn(
         } else
                 unit_unwatch_timer(UNIT(s), &s->timer_watch);
 
-        argv = unit_full_printf_strv(UNIT(s), c->argv);
-        if (!argv) {
-                r = -ENOMEM;
+        r = unit_full_printf_strv(UNIT(s), c->argv, &argv);
+        if (r < 0)
                 goto fail;
-        }
 
         our_env = new0(char*, 5);
         if (!our_env) {