* elf32-bfin.c (bfinfdpic_relocs_info_find): Just return

NULL if `ht' is NULL.
This commit is contained in:
Jie Zhang 2009-09-11 03:20:34 +00:00
parent f7c2a67543
commit 83fd943792
2 changed files with 11 additions and 2 deletions

View File

@ -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:

View File

@ -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;