summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/login/inhibit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/login/inhibit.c b/src/login/inhibit.c
index 029c9549d2..62a8223e63 100644
--- a/src/login/inhibit.c
+++ b/src/login/inhibit.c
@@ -86,9 +86,10 @@ static int print_inhibitors(DBusConnection *bus, DBusError *error) {
&reply,
NULL,
DBUS_TYPE_INVALID);
- if (r)
- return -ENOMEM;
+ if (r) {
+ r = -ENOMEM;
goto finish;
+ }
if (!dbus_message_iter_init(reply, &iter)) {
r = -ENOMEM;