From 27c8d41f74df0145969f39fe962ea2eb7425b324 Mon Sep 17 00:00:00 2001 From: Fabian Mauchle Date: Wed, 2 Jun 2021 08:27:11 +0200 Subject: [PATCH] avoid corner-case compiler error (fix #84) --- hostport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hostport.c b/hostport.c index 6408505..1faf2e4 100644 --- a/hostport.c +++ b/hostport.c @@ -222,7 +222,7 @@ int resolvehostports(struct list *hostports, int af, int socktype) { } struct addrinfo *resolvepassiveaddrinfo(char **hostport, int af, char *default_port, int socktype) { - struct addrinfo *ai = NULL, *last_ai; + struct addrinfo *ai = NULL, *last_ai = NULL; int i; char *any[2] = {"*", NULL};