From: Hans-Peter Nilsson Date: Tue, 22 Mar 2005 21:52:52 +0000 (+0000) Subject: * hash.c (strtab_hash_newfunc): Fix typo in allocated size. X-Git-Tag: csl-arm-20050325-branchpoint~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=672c2d7e5228b9c71b77d94647346f7b6a0cb2e4;p=platform%2Fupstream%2Fbinutils.git * hash.c (strtab_hash_newfunc): Fix typo in allocated size. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index dba1adb..f02c677 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2005-03-22 Hans-Peter Nilsson + + * hash.c (strtab_hash_newfunc): Fix typo in allocated size. + 2005-03-22 Bob Wilson * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup, diff --git a/bfd/hash.c b/bfd/hash.c index a81b38c..21c6293 100644 --- a/bfd/hash.c +++ b/bfd/hash.c @@ -555,7 +555,7 @@ strtab_hash_newfunc (struct bfd_hash_entry *entry, /* Allocate the structure if it has not already been allocated by a subclass. */ if (ret == NULL) - ret = bfd_hash_allocate (table, sizeof (* entry)); + ret = bfd_hash_allocate (table, sizeof (* ret)); if (ret == NULL) return NULL;