This should be fairly self-explanatory, I hope. Without this, systemd-inhibit --list outputs nothing; with it, there are at least some column headings and a count of the number of inhibitors.
Signed-off-by: Jonathan Conder <jonno.con...@gmail.com> --- src/login/inhibit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/login/inhibit.c b/src/login/inhibit.c index 029c954..d4c697b 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) + if (r) { return -ENOMEM; goto finish; + } if (!dbus_message_iter_init(reply, &iter)) { r = -ENOMEM; -- 1.7.12 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel