]> git.proxmox.com Git - mirror_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>
Thu, 27 Jun 2019 14:08:21 +0000 (16:08 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 78ab8e7e63028a3d36e5feeae5975fbb7a109769..7e16f7a0c4b5bad7ba2fa7484419fb421fbb85db 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;