mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-27 14:15:34 +07:00
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,
|
||||
NULL,
|
||||
DBUS_TYPE_INVALID);
|
||||
if (r)
|
||||
return -ENOMEM;
|
||||
if (r) {
|
||||
r = -ENOMEM;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (!dbus_message_iter_init(reply, &iter)) {
|
||||
r = -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user