From 2db56bd6953b939dbc5ab8b219d76418a631487f Mon Sep 17 00:00:00 2001 From: tomponline Date: Mon, 4 Mar 2019 08:25:42 +0000 Subject: [PATCH] monitor: shut up gcc. Closes #2885. Signed-off-by: tomponline --- src/lxc/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2