From 6afa301b8daa6261f5715a964b0e5263d2e9dd0c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 6 Aug 2012 16:41:29 +0200 Subject: [PATCH] main: fix typo --- src/core/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/main.c b/src/core/main.c index 3c0f5f9..cdd77c1 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1297,7 +1297,8 @@ int main(int argc, char *argv[]) { } /* Initialize default unit */ - if (r == set_default_unit(SPECIAL_DEFAULT_TARGET) < 0) { + r = set_default_unit(SPECIAL_DEFAULT_TARGET); + if (r < 0) { log_error("Failed to set default unit %s: %s", SPECIAL_DEFAULT_TARGET, strerror(-r)); goto finish; } -- 2.7.4