Make systemd-inhibit --list work
The code in the print_inhibitors function had an unintended unconditional early exit, causing it to never print any inhibitors.
This commit is contained in:
parent
54aa25e63c
commit
680258b112
|
@ -86,9 +86,10 @@ static int print_inhibitors(DBusConnection *bus, DBusError *error) {
|
||||||
&reply,
|
&reply,
|
||||||
NULL,
|
NULL,
|
||||||
DBUS_TYPE_INVALID);
|
DBUS_TYPE_INVALID);
|
||||||
if (r)
|
if (r) {
|
||||||
return -ENOMEM;
|
r = -ENOMEM;
|
||||||
goto finish;
|
goto finish;
|
||||||
|
}
|
||||||
|
|
||||||
if (!dbus_message_iter_init(reply, &iter)) {
|
if (!dbus_message_iter_init(reply, &iter)) {
|
||||||
r = -ENOMEM;
|
r = -ENOMEM;
|
||||||
|
|
Loading…
Reference in a new issue