Commit 680258b1 authored by Matthias Clasen's avatar Matthias Clasen Committed by Lennart Poettering

Make systemd-inhibit --list work

The code in the print_inhibitors function had an unintended
unconditional early exit, causing it to never print any
parent 54aa25e6
......@@ -86,9 +86,10 @@ static int print_inhibitors(DBusConnection *bus, DBusError *error) {
if (r)
return -ENOMEM;
if (r) {
r = -ENOMEM;
goto finish;
if (!dbus_message_iter_init(reply, &iter)) {
r = -ENOMEM;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment