aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-05-30 16:18:07 +0000
committerUlrich Drepper <drepper@redhat.com>2006-05-30 16:18:07 +0000
commitecc685684824cdbb971438ed944794d4bff4547d (patch)
tree6b82cf082ffd9b544e3df3a63e029854dfc3d2a6 /sysdeps
parentcabfcde1113be7e1d09d2cb0e2a9a4730005122d (diff)
downloadglibc-ecc685684824cdbb971438ed944794d4bff4547d.tar
glibc-ecc685684824cdbb971438ed944794d4bff4547d.tar.gz
glibc-ecc685684824cdbb971438ed944794d4bff4547d.tar.bz2
glibc-ecc685684824cdbb971438ed944794d4bff4547d.zip
* sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
the correct place. copying. No need to allocate new array for group members. Just
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/posix/getaddrinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index a35b8662d5..185957be6a 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -1668,7 +1668,7 @@ gaiconf_init (void)
if (strcmp (cmd, "label") == 0)
{
struct in6_addr prefix;
- unsigned long int bits = 128;
+ unsigned long int bits;
unsigned long int val;
char *endp;
@@ -1677,6 +1677,7 @@ gaiconf_init (void)
nullbitsp = &labellist_nullbits;
new_elem:
+ bits = 128;
__set_errno (0);
cp = strchr (val1, '/');
if (cp != NULL)