]> git.proxmox.com Git - mirror_lxc.git/commitdiff
confile: shut up gcc
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 1 Mar 2019 20:15:49 +0000 (21:15 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 1 Mar 2019 20:15:49 +0000 (21:15 +0100)
Invalid warning but let's please the compiler.

Closes #2885.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index cecb65548e6706a0bc159bdc68c03af0dd9f3398..120e9cddf8aac0379935af4797d91ab14f6c872c 100644 (file)
@@ -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;