summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-07 14:23:38 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-07 14:23:38 -0500
commitdcee01125dde502bd8108c36ddf2026c1348865f (patch)
tree7f35191006f3c3efed0769500bf523bb7874640b
parent8a16a7b4e7f6702a7e6edaead80ecf04be7d3ba2 (diff)
login: fix copy-pasto in error path
CID #1256583.
-rw-r--r--src/login/inhibit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/inhibit.c b/src/login/inhibit.c
index fcc8d72235..9f349b7c73 100644
--- a/src/login/inhibit.c
+++ b/src/login/inhibit.c
@@ -259,7 +259,7 @@ int main(int argc, char *argv[]) {
fd = inhibit(bus, &error);
if (fd < 0) {
- log_error("Failed to inhibit: %s", bus_error_message(&error, -r));
+ log_error("Failed to inhibit: %s", bus_error_message(&error, fd));
return EXIT_FAILURE;
}