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.
This commit is contained in:
Nestor Ovroy
2013-01-17 09:31:50 -05:00
committed by Zbigniew Jędrzejewski-Szmek
parent 464876c9c4
commit 8755586eba
+1 -1
View File
@@ -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);