chiark / gitweb /
api: in constructor function calls, always put the returned object pointer first...
[elogind.git] / src / run / run.c
index 724d67d84610d23d8580756de021e0edd95f65eb..885d881ec6763ebf652bc295f5d5972b46627687 100644 (file)
@@ -241,10 +241,11 @@ static int message_start_transient_unit_new(sd_bus *bus, const char *name, sd_bu
 
         r = sd_bus_message_new_method_call(
                         bus,
+                        &m,
                         "org.freedesktop.systemd1",
                         "/org/freedesktop/systemd1",
                         "org.freedesktop.systemd1.Manager",
-                        "StartTransientUnit", &m);
+                        "StartTransientUnit");
         if (r < 0)
                 return r;