From: Christian Brauner Date: Sat, 17 Feb 2018 18:21:30 +0000 (+0100) Subject: cgfsng: cg_unified_get_current_cgroup() X-Git-Tag: lxc-3.0.0.beta1~22^2~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=165dc5109ea7dea79f28314c57b4ac2b8bac5cc1;p=thirdparty%2Flxc.git cgfsng: cg_unified_get_current_cgroup() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index dd759a2b4..a899a889f 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1363,8 +1363,7 @@ static int cg_is_pure_unified(void) /* Get current cgroup from /proc/self/cgroup for the cgroupfs v2 hierarchy. */ static char *cg_unified_get_current_cgroup(void) { - char *basecginfo; - char *base_cgroup; + char *basecginfo, *base_cgroup; bool will_escape; char *copy = NULL;