]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix coredump discovered running m68k testsuite.
authorAlan Modra <amodra@gmail.com>
Mon, 8 May 2000 10:04:53 +0000 (10:04 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 8 May 2000 10:04:53 +0000 (10:04 +0000)
bfd/ChangeLog
bfd/versados.c

index 87af53214ea8cef307ea1498e6d85eb23cae4c67..838fd95fea376f6c673814e6fe79cb90e1ef2aa1 100644 (file)
@@ -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.
 
index 27f4f882088a4cc982dbe46da8cf9cc16045bf8d..d3ebda4c595ed327075fea4134c33424294bf5ce 100644 (file)
@@ -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)
     {