]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: correctly order variables
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 27 Jun 2019 12:46:47 +0000 (14:46 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 11 Aug 2019 19:38:14 +0000 (21:38 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 2aa75ef55aae81d53313bbf88de32fd76a69697e..9c93587837bcf6450a4e8b7549463d9cda74a944 100644 (file)
@@ -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;