Skip to content

Commit

Permalink
cgroups: initialize variable
Browse files Browse the repository at this point in the history
Fixes: Coverity 1472651
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 8, 2021
1 parent 1cc616f commit c9186cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgfsng.c
Expand Up @@ -3337,7 +3337,7 @@ static int cg_unified_init(struct cgroup_ops *ops, bool relative,
{
__do_close int cgroup_root_fd = -EBADF;
__do_free char *base_cgroup = NULL, *controllers_path = NULL;
__do_free_string_list char **delegatable;
__do_free_string_list char **delegatable = NULL;
int ret;
struct hierarchy *new;

Expand Down

0 comments on commit c9186cc

Please sign in to comment.