From: Christian Brauner Date: Sat, 17 Feb 2018 18:21:30 +0000 (+0100) Subject: cgfsng: cg_unified_get_current_cgroup() X-Git-Tag: lxc-2.0.10~289 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=300c37a2274f522833c7633cb89add9afbe31e13;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 a2f4bd369..5fc17ff07 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1352,8 +1352,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;