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

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

index 6a71a9a11d8eea8bb9d9cff75e9f149a9daaa0c5..2a80173bb4f1a3e56104bd5960945e5fb21f21c2 100644 (file)
@@ -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;