about summary refs log tree commit diff
path: root/elf/dl-lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-lookup.c')
-rw-r--r--elf/dl-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c
index ca0f03489d..62802ddea7 100644
--- a/elf/dl-lookup.c
+++ b/elf/dl-lookup.c
@@ -87,7 +87,7 @@ _dl_lookup_symbol (const char *undef_name, const Elf32_Sym **ref,
 	      return map->l_addr;
 	    case STB_WEAK:
 	      /* Weak definition.  Use this value if we don't find another.  */
-	      if (weak_value.a == 0)
+	      if (! weak_value.s)
 		{
 		  weak_value.s = sym;
 		  weak_value.a = map->l_addr;