From 0cacddda88fad144264d82c3ab05e478cd2d72e9 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 1 Mar 2019 21:15:49 +0100 Subject: [PATCH] confile: shut up gcc Invalid warning but let's please the compiler. Closes #2885. Signed-off-by: Christian Brauner --- src/lxc/confile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index cecb65548..120e9cddf 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -2711,7 +2711,7 @@ int write_config(int fd, const struct lxc_conf *conf) bool do_append_unexp_config_line(struct lxc_conf *conf, const char *key, const char *v) { - __do_free char *tmp; + __do_free char *tmp = NULL; int ret; size_t len; -- 2.47.2