Commit 8755586e authored by Nestor Ovroy's avatar Nestor Ovroy Committed by Zbigniew Jędrzejewski-Szmek
Browse files

core: corrects check of strduped controller string

In commit 246aa6dd (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.
parent 464876c9
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment