Skip to content

Commit

Permalink
start: initialize cgroup_fd
Browse files Browse the repository at this point in the history
Fixes: Coverity 1465045.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Jun 29, 2020
1 parent d5827bc commit 84b66ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/start.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 84b66ce

Please sign in to comment.