From cf6ada44a2ad93c4155ce804ba3a1f2cf8cbe15f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 24 Apr 2006 17:21:40 +0000 Subject: * sysdeps/posix/getaddrinfo.c (getaddrinfo): Always initialize in6ai. --- sysdeps/posix/getaddrinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/posix') diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 843e60b..e4fea33 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -1516,7 +1516,7 @@ getaddrinfo (const char *name, const char *service, if ((hints->ai_flags & AI_CANONNAME) && name == NULL) return EAI_BADFLAGS; - struct in6addrinfo *in6ai; + struct in6addrinfo *in6ai = NULL; size_t in6ailen; bool seen_ipv4 = false; bool seen_ipv6 = false; -- cgit v1.1