]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cmd: shut up gcc. 2889/head
authortomponline <tomp@tomp.uk>
Mon, 4 Mar 2019 08:37:16 +0000 (08:37 +0000)
committertomponline <tomp@tomp.uk>
Mon, 4 Mar 2019 08:37:16 +0000 (08:37 +0000)
Closes #2885.

Signed-off-by: tomponline <tomp@tomp.uk>
src/lxc/cmd/lxc_user_nic.c

index b9683c296460d0cc4304a6076e17786871d43748..27100d248196af823819d981ca05f95965cf34ff 100644 (file)
@@ -817,7 +817,7 @@ static char *get_nic_if_avail(int fd, struct alloted_s *names, int pid,
 
 static bool create_db_dir(char *fnam)
 {
-       __do_free char *copy;
+       __do_free char *copy = NULL;
        char *p;
        int ret;