From: Christian Brauner Date: Thu, 27 Jun 2019 12:46:47 +0000 (+0200) Subject: cgroups: correctly order variables X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db3d5c1f4bf7eee5ca49fe660c6731442f689e1e;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 2aa75ef55..9c9358783 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;