From e5a1c18d706c4d5e16100fe4fb8a07a80f2fa339 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Fri, 6 Jun 2014 23:29:09 +0200 Subject: fix warnings Prevent use of uninitialized variable and removed a now unused cleanup function for freeaddrinfo --- src/core/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/socket.c b/src/core/socket.c index 9c4943e0bf..4fb4b991e2 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -1410,7 +1410,7 @@ static int socket_chown(Socket *s, pid_t *_pid) { } LIST_FOREACH(port, p, s->ports) { - const char *path; + const char *path = NULL; if (p->type == SOCKET_SOCKET) path = socket_address_get_path(&p->address); -- cgit v1.2.3-54-g00ecf