summary refs log tree commit diff
path: root/elf/dlsym.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dlsym.c')
-rw-r--r--elf/dlsym.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dlsym.c b/elf/dlsym.c
index 8277ca3c13..0441e54c88 100644
--- a/elf/dlsym.c
+++ b/elf/dlsym.c
@@ -29,10 +29,10 @@ dlsym (void *handle, const char *name)
   struct link_map *map = handle;
   struct link_map *real_next;
   Elf32_Addr loadbase;
+  const Elf32_Sym *ref = NULL;
   int lose;
   void doit (void)
     {
-      const Elf32_Sym *ref = NULL;
       loadbase = _dl_lookup_symbol (name, &ref, map, map->l_name, 1);
     }