start: initialize cgroup_fd

Fixes: Coverity 1465045. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 65b53096
...@@ -1634,7 +1634,7 @@ static int lxc_spawn(struct lxc_handler *handler) ...@@ -1634,7 +1634,7 @@ static int lxc_spawn(struct lxc_handler *handler)
goto out_delete_net; goto out_delete_net;
} }
} else { } else {
int cgroup_fd; int cgroup_fd = -EBADF;
struct lxc_clone_args clone_args = { struct lxc_clone_args clone_args = {
.flags = handler->clone_flags, .flags = handler->clone_flags,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment