diff options
author | Jie Zhang <jie.zhang@analog.com> | 2009-09-11 03:20:34 +0000 |
---|---|---|
committer | Jie Zhang <jie.zhang@analog.com> | 2009-09-11 03:20:34 +0000 |
commit | 83fd9437924584870b50a4a9d477529dde5cf1f4 (patch) | |
tree | 6a4ef9a9e69b5d376642967cb7bd2c71ce74e1e1 /bfd | |
parent | f7c2a67543d58ba4a4467fe0ca4808ace9fdabfc (diff) | |
download | gdb-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')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-bfin.c | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f804d9b..06a2de9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-09-04 Jie Zhang <jie.zhang@analog.com> + + * elf32-bfin.c (bfinfdpic_relocs_info_find): Just return + NULL if `ht' is NULL. + 2009-09-09 Martin Thuresson <martin@mtme.org> Update soruces to compile cleanly with -Wc++-compat: 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; |