From ed75d76e70233986364da5a4186088ecff335c0d Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Mon, 1 Feb 2021 15:44:59 +0100 Subject: [PATCH] cgroups: initialize variable Fixes: Coverity 1472651 Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 7e39a8fd7..f1b953e46 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -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; __do_free struct hierarchy *new = NULL; int ret; -- 2.47.2