aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-bfin.c
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2009-09-11 03:20:34 +0000
committerJie Zhang <jie.zhang@analog.com>2009-09-11 03:20:34 +0000
commit83fd9437924584870b50a4a9d477529dde5cf1f4 (patch)
tree6a4ef9a9e69b5d376642967cb7bd2c71ce74e1e1 /bfd/elf32-bfin.c
parentf7c2a67543d58ba4a4467fe0ca4808ace9fdabfc (diff)
downloadgdb-83fd9437924584870b50a4a9d477529dde5cf1f4.zip
gdb-83fd9437924584870b50a4a9d477529dde5cf1f4.tar.gz
gdb-83fd9437924584870b50a4a9d477529dde5cf1f4.tar.bz2
* elf32-bfin.c (bfinfdpic_relocs_info_find): Just return
NULL if `ht' is NULL.
Diffstat (limited to 'bfd/elf32-bfin.c')
-rw-r--r--bfd/elf32-bfin.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c
index f8e4c19..d4e3bbb 100644
--- a/bfd/elf32-bfin.c
+++ b/bfd/elf32-bfin.c
@@ -1950,8 +1950,12 @@ bfinfdpic_relocs_info_find (struct htab *ht,
const struct bfinfdpic_relocs_info *entry,
enum insert_option insert)
{
- struct bfinfdpic_relocs_info **loc =
- (struct bfinfdpic_relocs_info **) htab_find_slot (ht, entry, insert);
+ struct bfinfdpic_relocs_info **loc;
+
+ if (!ht)
+ return NULL;
+
+ loc = (struct bfinfdpic_relocs_info **) htab_find_slot (ht, entry, insert);
if (! loc)
return NULL;