From 32252ac19e8131db716d8daa6210caf5407d5dbd Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 6 Apr 2009 01:21:09 +0000 Subject: [PATCH] * ldfile.c (ldfile_find_command_file): Initialize result. --- ld/ChangeLog | 4 ++++ ld/ldfile.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index e7df0814f74..b968af66d6a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2009-04-06 Kazu Hirata + + * ldfile.c (ldfile_find_command_file): Initialize result. + 2009-04-06 Kazu Hirata * ld.texinfo (-L): Mention that -L options do not affect how ld diff --git a/ld/ldfile.c b/ld/ldfile.c index 380b56ac68e..422416a8b44 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -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; -- 2.30.2