From: tomponline Date: Mon, 4 Mar 2019 08:37:16 +0000 (+0000) Subject: cmd: shut up gcc. X-Git-Tag: lxc-3.2.0~125^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea83b296ff1c3b66c86c73fa4921c3e540ff7f10;p=thirdparty%2Flxc.git cmd: shut up gcc. Closes #2885. Signed-off-by: tomponline --- diff --git a/src/lxc/cmd/lxc_user_nic.c b/src/lxc/cmd/lxc_user_nic.c index b9683c296..27100d248 100644 --- a/src/lxc/cmd/lxc_user_nic.c +++ b/src/lxc/cmd/lxc_user_nic.c @@ -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;