start: initialize cgroup_fd

Fixes: Coverity 1465045. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent d5827bc0
......@@ -1695,7 +1695,7 @@ static int lxc_spawn(struct lxc_handler *handler)
goto out_delete_net;
}
} else {
int cgroup_fd;
int cgroup_fd = -EBADF;
struct lxc_clone_args clone_args = {
.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