summaryrefslogtreecommitdiff
path: root/bfd/ieee.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-04-21 07:49:29 +0000
committerNick Clifton <nickc@redhat.com>2007-04-21 07:49:29 +0000
commitaddd38cd4f6fa7d1744bd3b799eb8946c0a43a79 (patch)
tree7d135ec23df8586043cfce715b4ef5ff56f28b06 /bfd/ieee.c
parentbf8fd4f89d898c0c03ecdefc865719f44ff847b6 (diff)
downloadbinutils-redhat-addd38cd4f6fa7d1744bd3b799eb8946c0a43a79.tar.gz
* ecoff.c (_bfd_ecoff_write_armap): Initialise rehash.
(ecoff_link_add_archive_symbols): Likewise. * coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise relent.howto. * ieee.c (parse_int): Initialise x. (must_parse_int): Initialise result. (ieee_slurp_external_symbols): Initialise value.
Diffstat (limited to 'bfd/ieee.c')
-rw-r--r--bfd/ieee.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/ieee.c b/bfd/ieee.c
index 6ea0700edb..8e4678b467 100644
--- a/bfd/ieee.c
+++ b/bfd/ieee.c
@@ -370,7 +370,7 @@ parse_int (common_header_type *ieee, bfd_vma *value_ptr)
static int
parse_i (common_header_type *ieee, bfd_boolean *ok)
{
- bfd_vma x;
+ bfd_vma x = 0;
*ok = parse_int (ieee, &x);
return x;
}
@@ -378,7 +378,7 @@ parse_i (common_header_type *ieee, bfd_boolean *ok)
static bfd_vma
must_parse_int (common_header_type *ieee)
{
- bfd_vma result;
+ bfd_vma result = 0;
BFD_ASSERT (parse_int (ieee, &result));
return result;
}
@@ -767,7 +767,7 @@ ieee_slurp_external_symbols (bfd *abfd)
unsigned int symbol_name_index;
unsigned int symbol_type_index;
unsigned int symbol_attribute_def;
- bfd_vma value;
+ bfd_vma value = 0;
switch (read_2bytes (&ieee->h))
{