From: tomponline Date: Mon, 4 Mar 2019 08:25:42 +0000 (+0000) Subject: monitor: shut up gcc. X-Git-Tag: lxc-3.2.0~125^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2db56bd6953b939dbc5ab8b219d76418a631487f;p=thirdparty%2Flxc.git monitor: shut up gcc. Closes #2885. Signed-off-by: tomponline --- diff --git a/src/lxc/monitor.c b/src/lxc/monitor.c index 6a71a9a11..2a80173bb 100644 --- a/src/lxc/monitor.c +++ b/src/lxc/monitor.c @@ -171,7 +171,7 @@ int lxc_monitor_close(int fd) */ int lxc_monitor_sock_name(const char *lxcpath, struct sockaddr_un *addr) { - __do_free char *path; + __do_free char *path = NULL; size_t len; int ret; uint64_t hash;