]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
authorUlrich Drepper <drepper@redhat.com>
Tue, 30 May 2006 16:18:07 +0000 (16:18 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 30 May 2006 16:18:07 +0000 (16:18 +0000)
the correct place.

copying.  No need to allocate new array for group members.  Just

ChangeLog
sysdeps/posix/getaddrinfo.c

index 0bbf3466c8c59003c1aa43ce77539a51c1fdfe27..2718e6b0d39e1e9e8e227dafc9b193815046138a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-30  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
+       the correct place.
+
 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
 
        * nscd/nscd.h (struct database_dyn): Add prunelock field.
@@ -8,7 +13,7 @@
 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
 
        * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
-       coping.  No need to allocate new array for group members.  Just
+       copying.  No need to allocate new array for group members.  Just
        move the pointers and update the size.
 
        * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
index a35b8662d598caa5fcf9266a9a44ea4478b537ff..185957be6a40e1739a4a55f09c0c5bf4aba68c41 100644 (file)
@@ -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)