diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-08-06 16:41:29 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-08-06 16:41:29 +0200 |
commit | 6afa301b8daa6261f5715a964b0e5263d2e9dd0c (patch) | |
tree | c8e137915ddff099af2bbea54443b59c8d97327a /src/core/main.c | |
parent | 1421211924ff05af3b0c0d52f1c84472d0307456 (diff) |
main: fix typo
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 3 |
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; } |