* ldfile.c (ldfile_find_command_file): Initialize result.
authorKazu Hirata <kazu@codesourcery.com>
Mon, 6 Apr 2009 01:21:09 +0000 (01:21 +0000)
committerKazu Hirata <kazu@codesourcery.com>
Mon, 6 Apr 2009 01:21:09 +0000 (01:21 +0000)
ld/ChangeLog
ld/ldfile.c

index e7df0814f7407078336d646f88c5e6e43196dd70..b968af66d6a08d74df2042e8b39914aa6790b36d 100644 (file)
@@ -1,3 +1,7 @@
+2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
+
+       * ldfile.c (ldfile_find_command_file): Initialize result.
+
 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
 
        * ld.texinfo (-L): Mention that -L options do not affect how ld
index 380b56ac68ef09979181d7c8ea823611ab618580..422416a8b442a92d57febe60195fe51ee79ec999 100644 (file)
@@ -552,7 +552,7 @@ ldfile_find_command_file (const char *name, const char *extend,
                          bfd_boolean default_only)
 {
   search_dirs_type *search;
-  FILE *result;
+  FILE *result = NULL;
   char *buffer;
   static search_dirs_type *script_search;