From 872c8faaf2009422a91d227ae0b5c6f04c9d2c69 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Fri, 11 Oct 2013 19:34:17 -0400 Subject: Fix write-only use of a few variables Since the invention of read-only memory, write-only memory has been considered deprecated. Where appropriate, either make use of the value, or avoid writing it, to make it clear that it is not used. --- src/login/logind-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/login/logind-dbus.c') diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index bb85c7d4af..890c5c6b1d 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -484,7 +484,7 @@ static int bus_manager_create_session(Manager *m, DBusMessage *message) { return -EINVAL; } - r = manager_get_session_by_pid(m, leader, &session); + manager_get_session_by_pid(m, leader, &session); if (session) { _cleanup_dbus_message_unref_ DBusMessage *reply = NULL; _cleanup_free_ char *path = NULL; -- cgit v1.2.3-54-g00ecf