]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Avoid warning in dl-lookup.c
authorUlrich Drepper <drepper@gmail.com>
Sat, 29 Oct 2011 16:40:55 +0000 (12:40 -0400)
committerUlrich Drepper <drepper@gmail.com>
Sat, 29 Oct 2011 16:40:55 +0000 (12:40 -0400)
ChangeLog
elf/dl-lookup.c

index 8e0c37ca842ba041fd80abf26685c48621abc190..fbef6bc6c3415dfe6cd46e4cd7410e18eed39cee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
 
+       * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
+
        [BZ #13335]
        * elf/chroot_canon.c (chroot_canon): Fix readlink call.
        Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
index affb53f30e06307490102e83f1ded598344cf16c..e655d14dd414a36d99e946834886368ab346dae7 100644 (file)
@@ -860,7 +860,6 @@ internal_function
 _dl_setup_hash (struct link_map *map)
 {
   Elf_Symndx *hash;
-  Elf_Symndx nchain;
 
   if (__builtin_expect (map->l_info[DT_ADDRTAGIDX (DT_GNU_HASH) + DT_NUM
                                    + DT_THISPROCNUM + DT_VERSIONTAGNUM
@@ -892,7 +891,8 @@ _dl_setup_hash (struct link_map *map)
   hash = (void *) D_PTR (map, l_info[DT_HASH]);
 
   map->l_nbuckets = *hash++;
-  nchain = *hash++;
+  /* Skip nchain.  */
+  hash++;
   map->l_buckets = hash;
   hash += map->l_nbuckets;
   map->l_chain = hash;