* sysdeps/posix/getaddrinfo.c (getaddrinfo): Always initialize in6ai.

This commit is contained in:
Ulrich Drepper 2006-04-24 17:21:40 +00:00
parent 589abe9337
commit cf6ada44a2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-04-24 Ulrich Drepper <drepper@redhat.com>
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Always initialize in6ai.
2006-04-24 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range): Use

View File

@ -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;