summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-11-02 16:19:54 +0000
committerNick Clifton <nickc@redhat.com>2001-11-02 16:19:54 +0000
commit9da7bd5ec2de8b1357ce399605162b2af3a17073 (patch)
tree583e976e29bc28029ee29331d951dddf0db86343 /bfd
parent139ddc84127487c943ab64b3e5517a67b452e796 (diff)
downloadgdb-9da7bd5ec2de8b1357ce399605162b2af3a17073.tar.gz
Initialize subspace_sections.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/som.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f521ff7cfa6..ce54d18fd61 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2001-11-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
+
+ * som.c (setup_sections): Initialize subspace_sections.
+
2001-11-02 H.J. Lu (hjl@gnu.org)
* coffgen.c (coff_object_p): Return 0 if the header is too big.
diff --git a/bfd/som.c b/bfd/som.c
index 39a4d5deb6e..cf4af77229e 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -1851,7 +1851,8 @@ setup_sections (abfd, file_hdr, current_offset)
char *space_strings;
unsigned int space_index, i;
unsigned int total_subspaces = 0;
- asection **subspace_sections, *section;
+ asection **subspace_sections = NULL;
+ asection *section;
bfd_size_type amt;
/* First, read in space names. */