fix warnings

Prevent use of uninitialized variable and removed a now unused
cleanup function for freeaddrinfo
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2014-06-06 23:31:25 +02:00
parent 4457430353
commit e5a1c18d70
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -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);