diff --git a/src/login/inhibit.c b/src/login/inhibit.c index 029c9549d..62a8223e6 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;