From: Christian Brauner Date: Fri, 1 Mar 2019 20:15:49 +0000 (+0100) Subject: confile: shut up gcc X-Git-Tag: lxc-3.2.0~127^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cacddda88fad144264d82c3ab05e478cd2d72e9;p=thirdparty%2Flxc.git confile: shut up gcc Invalid warning but let's please the compiler. Closes #2885. Signed-off-by: Christian Brauner --- 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;