From ae33c30b49d2246b3ffc7834bb4bbacc7bb749f0 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 31 Jan 2013 13:41:58 +0100 Subject: [PATCH] Revert "Don't call elf_hash on NULL value" This reverts commit 505329b5b3ee4cb47d0a3590ccd62a65dbf83fc9. --- tccelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccelf.c b/tccelf.c index 152c4fb5..5fea23a3 100644 --- a/tccelf.c +++ b/tccelf.c @@ -114,7 +114,7 @@ ST_FUNC int put_elf_sym(Section *s, uplong value, unsigned long size, if (ELFW(ST_BIND)(info) != STB_LOCAL) { /* add another hashing entry */ nbuckets = base[0]; - h = name ? elf_hash(name) % nbuckets : 0; + h = elf_hash(name) % nbuckets; *ptr = base[2 + h]; base[2 + h] = sym_index; base[1]++; -- 2.11.4.GIT