chiark / gitweb /
systemd,systemctl: export condition status and show failing condition
[elogind.git] / src / core / unit.c
index a201fa40417a2968bae3c5612f1f5fef6a9097fd..0e9329f8c9b1e993ef67b3f6d103ac00a7dc35a7 100644 (file)
@@ -1125,7 +1125,8 @@ int unit_start(Unit *u) {
         }
 
         /* Forward to the main object, if we aren't it. */
-        if ((following = unit_following(u))) {
+        following = unit_following(u);
+        if (following) {
                 log_debug_unit(u->id, "Redirecting start request from %s to %s.",
                                u->id, following->id);
                 return unit_start(following);