summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-08-06 19:34:09 +0200
committerSven Eden <sven.eden@prydeworx.com>2018-10-29 10:18:35 +0100
commit49352cef7194fd620d415f1aba251cd411eab70f (patch)
treed4d8f93e04936a13601a10c04c280d8488124ff8 /src
parentdb81c47d7076c57672cfc4144ec52c9762301920 (diff)
logind: use TAKE_PTR() where we can
(cherry picked from commit 1b88ed3b7db37241323348f640f9adb61c0df47a)
Diffstat (limited to 'src')
-rw-r--r--src/login/logind-session-dbus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/login/logind-session-dbus.c b/src/login/logind-session-dbus.c
index 8a95fc7c7..0e2cde727 100644
--- a/src/login/logind-session-dbus.c
+++ b/src/login/logind-session-dbus.c
@@ -708,9 +708,7 @@ int session_send_create_reply(Session *s, sd_bus_error *error) {
return 0;
#endif // 0
- c = s->create_message;
- s->create_message = NULL;
-
+ c = TAKE_PTR(s->create_message);
if (error)
return sd_bus_reply_method_error(c, error);