diff options
author | Nestor Ovroy <novroy@riseup.net> | 2013-01-17 05:55:30 -0800 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-01-17 09:31:50 -0500 |
commit | 8755586eba8b824851f11aa6c3f8f184ed69a30a (patch) | |
tree | 61bc15f129126a913cde163f525889ccc023187a | |
parent | 464876c9c410b2f5bb997259510a13d0ee7d0af0 (diff) |
core: corrects check of strduped controller string
In commit 246aa6d (core: add bus API and systemctl commands for altering
cgroup parameters during runtime), when rewriting unit_add_one_default_cgroup
to prefered style, the check of strduped b->controller was incorrectly
changed to check the containing structure. Correct it.
-rw-r--r-- | src/core/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c index 1194c524bf..d26f6e456c 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -2090,7 +2090,7 @@ static int unit_add_one_default_cgroup(Unit *u, const char *controller) { return -ENOMEM; b->controller = strdup(controller); - if (!b) + if (!b->controller) goto fail; b->path = unit_default_cgroup_path(u); |