diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-04-24 17:21:40 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-04-24 17:21:40 +0000 |
commit | cf6ada44a2ad93c4155ce804ba3a1f2cf8cbe15f (patch) | |
tree | 31647f4108d43cbe1fa8306dcfdcc59f06f11cb0 /sysdeps/posix/getaddrinfo.c | |
parent | 589abe9337cac4420bbca7e2f9255214651f9c4d (diff) | |
download | glibc-cf6ada44a2ad93c4155ce804ba3a1f2cf8cbe15f.tar.gz glibc-cf6ada44a2ad93c4155ce804ba3a1f2cf8cbe15f.tar.xz glibc-cf6ada44a2ad93c4155ce804ba3a1f2cf8cbe15f.zip |
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Always initialize in6ai.
Diffstat (limited to 'sysdeps/posix/getaddrinfo.c')
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 843e60bba3..e4fea334ca 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; |