From: Christian Brauner Date: Mon, 1 Feb 2021 14:44:59 +0000 (+0100) Subject: cgroups: initialize variable X-Git-Tag: lxc-5.0.0~310^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed75d76e70233986364da5a4186088ecff335c0d;p=thirdparty%2Flxc.git cgroups: initialize variable Fixes: Coverity 1472651 Signed-off-by: Christian Brauner --- 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;