* elf32-bfin.c (bfinfdpic_relocs_info_find): Just return
NULL if `ht' is NULL.
This commit is contained in:
parent
f7c2a67543
commit
83fd943792
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user