* 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>
|
2009-09-09 Martin Thuresson <martin@mtme.org>
|
||||||
|
|
||||||
Update soruces to compile cleanly with -Wc++-compat:
|
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,
|
const struct bfinfdpic_relocs_info *entry,
|
||||||
enum insert_option insert)
|
enum insert_option insert)
|
||||||
{
|
{
|
||||||
struct bfinfdpic_relocs_info **loc =
|
struct bfinfdpic_relocs_info **loc;
|
||||||
(struct bfinfdpic_relocs_info **) htab_find_slot (ht, entry, insert);
|
|
||||||
|
if (!ht)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
loc = (struct bfinfdpic_relocs_info **) htab_find_slot (ht, entry, insert);
|
||||||
|
|
||||||
if (! loc)
|
if (! loc)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue