about summary refs log tree commit diff
path: root/elf/dlvsym.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dlvsym.c')
-rw-r--r--elf/dlvsym.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/elf/dlvsym.c b/elf/dlvsym.c
index a332c590f2..c42b0d768f 100644
--- a/elf/dlvsym.c
+++ b/elf/dlvsym.c
@@ -68,8 +68,7 @@ RTLD_NEXT used in code not dynamically loaded"));
 	l = l->l_loader;
 
       {
-	struct link_map *map = l;
-	struct link_map *mapscope[2] = { map, NULL };
+	struct link_map *mapscope[2] = { l, NULL };
 	args->loadbase = _dl_lookup_versioned_symbol_skip (args->name,
 							   &args->ref,
 							   mapscope,