From: Christian Brauner Date: Thu, 27 Jun 2019 12:46:47 +0000 (+0200) Subject: cgroups: correctly order variables X-Git-Tag: lxc-3.2.0~18^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6b54668ef6172191c2a83dac050b3e1dd0cbdb6;p=thirdparty%2Flxc.git cgroups: correctly order variables Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 78ab8e7e6..7e16f7a0c 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1715,10 +1715,10 @@ static int cg_legacy_mount_controllers(int type, struct hierarchy *h, static int __cg_mount_direct(int type, struct hierarchy *h, const char *controllerpath) { - int ret; __do_free char *controllers = NULL; char *fstype = "cgroup2"; unsigned long flags = 0; + int ret; flags |= MS_NOSUID; flags |= MS_NOEXEC;