[systemd-commits] src/core

Lennart Poettering lennart at kemper.freedesktop.org
Mon Aug 6 07:41:56 PDT 2012


 src/core/main.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 6afa301b8daa6261f5715a964b0e5263d2e9dd0c
Author: Lennart Poettering <lennart at poettering.net>
Date:   Mon Aug 6 16:41:29 2012 +0200

    main: fix typo

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;
         }



More information about the systemd-commits mailing list