diff options
author | Nick Clifton <nickc@redhat.com> | 2007-04-24 13:05:46 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-04-24 13:05:46 +0000 |
commit | 8dd6a9b6b3a10ce492bbcc22c617634c6d3f0824 (patch) | |
tree | 625219cfbb2b82b94bf0f3008f764499e3eb9009 /bfd/coff-m68k.c | |
parent | e43b7ae94c6d7636cbcae32e652b8971383d05c7 (diff) | |
download | gdb-8dd6a9b6b3a10ce492bbcc22c617634c6d3f0824.tar.gz |
Fix compile time warnings (at -O3 with gcc 4.1.2)
Diffstat (limited to 'bfd/coff-m68k.c')
-rw-r--r-- | bfd/coff-m68k.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/coff-m68k.c b/bfd/coff-m68k.c index ae524e47e6a..3d162a0f068 100644 --- a/bfd/coff-m68k.c +++ b/bfd/coff-m68k.c @@ -251,11 +251,12 @@ m68kcoff_rtype_to_howto (abfd, sec, rel, h, sym, addendp) arelent relent; reloc_howto_type *howto; + relent.howto = NULL; RTYPE2HOWTO (&relent, rel); howto = relent.howto; - if (howto->pc_relative) + if (howto != NULL && howto->pc_relative) *addendp += sec->vma; return howto; |