chiark / gitweb /
api: in constructor function calls, always put the returned object pointer first...
[elogind.git] / src / login / logind-session-device.c
index 592bcf2d9f958fcf88f8ef59e37cd67cfd229330..932abb82f960655564b714b75c209129fced93fc 100644 (file)
@@ -62,10 +62,10 @@ static int session_device_notify(SessionDevice *sd, enum SessionDeviceNotificati
                 return -ENOMEM;
 
         r = sd_bus_message_new_signal(
-                        sd->session->manager->bus, path,
+                        sd->session->manager->bus,
+                        &m, path,
                         "org.freedesktop.login1.Session",
-                        (type == SESSION_DEVICE_RESUME) ? "ResumeDevice" : "PauseDevice",
-                        &m);
+                        (type == SESSION_DEVICE_RESUME) ? "ResumeDevice" : "PauseDevice");
         if (!m)
                 return r;