* collect2.c (main): Initialize ld_file_name.
authorRichard Henderson <rth@cygnus.com>
Tue, 6 Oct 1998 15:43:24 +0000 (08:43 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 6 Oct 1998 15:43:24 +0000 (08:43 -0700)
From-SVN: r22870

gcc/ChangeLog
gcc/collect2.c

index 0259d7edbfcbbc2d0835141e5d22b8b7b94a1999..378b81284dd5cdd2fdfd119db3e8be14565faf2a 100644 (file)
@@ -1,3 +1,7 @@
+Tue Oct  6 15:42:27 1998  Richard Henderson  <rth@cygnus.com>
+
+       * collect2.c (main): Initialize ld_file_name.
+
 Tue Oct  6 15:45:15 1998  Catherine Moore  <clm@cygnus.com>
  
         * config/sparc/sysv4.h (ASM_OUTPUT_SECTION_NAME):  Don't
index bc2ef843009760c22aa7624eabd311ac18efe82a..bfa91550874b61746491a090bbb41b240a4e29c2 100644 (file)
@@ -1075,6 +1075,7 @@ main (argc, argv)
   /* Try to discover a valid linker/nm/strip to use.  */
 
   /* Maybe we know the right file to use (if not cross).  */
+  ld_file_name = 0;
 #ifdef DEFAULT_LINKER
   if (access (DEFAULT_LINKER, X_OK) == 0)
     ld_file_name = DEFAULT_LINKER;