elf-hppa.h warning fix
authorAlan Modra <amodra@gmail.com>
Wed, 4 Apr 2018 02:30:22 +0000 (12:00 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 4 Apr 2018 22:54:15 +0000 (08:24 +0930)
* elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
(elf_hppa_info_to_howto_rel): Likewise.

bfd/ChangeLog
bfd/elf-hppa.h

index 8921ab0..c7fce7d 100644 (file)
@@ -1,3 +1,8 @@
+2018-04-05  Alan Modra  <amodra@gmail.com>
+
+       * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
+       (elf_hppa_info_to_howto_rel): Likewise.
+
 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
 
        * elf-hppa.h (elf_hppa_info_to_howto): Also return
index f23f788..5eac129 100644 (file)
@@ -1027,7 +1027,7 @@ elf_hppa_info_to_howto (bfd *abfd,
 {
   unsigned int r_type = ELF32_R_TYPE (elf_reloc->r_info);
   unsigned int type = r_type;
-  reloc_howto_type *howto;
+  reloc_howto_type *howto = NULL;
 
   if (r_type < (unsigned int) R_PARISC_UNIMPLEMENTED)
     {
@@ -1055,7 +1055,7 @@ elf_hppa_info_to_howto_rel (bfd *abfd,
 {
   unsigned int r_type = ELF_R_TYPE (elf_reloc->r_info);
   unsigned int type = r_type;
-  reloc_howto_type *howto;
+  reloc_howto_type *howto = NULL;
 
   if (r_type < (unsigned int) R_PARISC_UNIMPLEMENTED)
     {