summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-06 16:41:29 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-06 16:41:29 +0200
commit6afa301b8daa6261f5715a964b0e5263d2e9dd0c (patch)
treec8e137915ddff099af2bbea54443b59c8d97327a /src/core
parent1421211924ff05af3b0c0d52f1c84472d0307456 (diff)
main: fix typo
Diffstat (limited to 'src/core')
-rw-r--r--src/core/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 3c0f5f9a94..cdd77c1ad9 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;
}