chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemd,systemctl: export condition status and show failing condition
[elogind.git]
/
src
/
core
/
unit.c
diff --git
a/src/core/unit.c
b/src/core/unit.c
index a201fa40417a2968bae3c5612f1f5fef6a9097fd..0e9329f8c9b1e993ef67b3f6d103ac00a7dc35a7 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-1125,7
+1125,8
@@
int unit_start(Unit *u) {
}
/* Forward to the main object, if we aren't it. */
}
/* 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);
log_debug_unit(u->id, "Redirecting start request from %s to %s.",
u->id, following->id);
return unit_start(following);