summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-05-08 10:00:27 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-05-08 10:00:27 +0000
commit4efa206ec2f29a5cf6facd949d5030aa9ef09e0f (patch)
treeeb2aa6aa4e2fd5dd26be69bb0b39dcde04507c24 /bfd
parent9ca9423d105a222fe29da85455ef9d222190fe91 (diff)
downloadgdb-4efa206ec2f29a5cf6facd949d5030aa9ef09e0f.tar.gz
Fix coredump discovered running m68k testsuite.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog2
-rw-r--r--bfd/versados.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7a7f13bd576..f1e4f033895 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,7 @@
2000-05-08 Alan Modra <alan@linuxcare.com.au>
+ * versados.c (versados_scan): Init stringlen and pass_2_done.
+
* trad-core.c (trad_unix_core_file_p): Return
bfd_error_wrong_format rather than bfd_error_file_truncated.
diff --git a/bfd/versados.c b/bfd/versados.c
index 27f4f882088..d3ebda4c595 100644
--- a/bfd/versados.c
+++ b/bfd/versados.c
@@ -1,5 +1,5 @@
/* BFD back-end for VERSAdos-E objects.
- Copyright 1995, 96, 97, 98, 1999 Free Software Foundation, Inc.
+ Copyright 1995, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
Written by Steve Chamberlain of Cygnus Support <sac@cygnus.com>.
Versados is a Motorola trademark.
@@ -483,10 +483,12 @@ versados_scan (abfd)
int j;
int nsecs = 0;
+ VDATA (abfd)->stringlen = 0;
VDATA (abfd)->nrefs = 0;
VDATA (abfd)->ndefs = 0;
VDATA (abfd)->ref_idx = 0;
VDATA (abfd)->def_idx = 0;
+ VDATA (abfd)->pass_2_done = 0;
while (loop)
{