mirror of
https://github.com/systemd/systemd.git
synced 2026-07-12 02:24:15 +00: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:
committed by
Lennart Poettering
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;
|
||||
|
||||
Reference in New Issue
Block a user