diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2009-04-06 01:21:09 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2009-04-06 01:21:09 +0000 |
commit | 32252ac19e8131db716d8daa6210caf5407d5dbd (patch) | |
tree | 2eff391ae427292168ec1b9c31414628f001c762 /ld | |
parent | 35d35f1f4e6956298ba0f9cbabe50902cbca5733 (diff) | |
download | gdb-32252ac19e8131db716d8daa6210caf5407d5dbd.zip gdb-32252ac19e8131db716d8daa6210caf5407d5dbd.tar.gz gdb-32252ac19e8131db716d8daa6210caf5407d5dbd.tar.bz2 |
* ldfile.c (ldfile_find_command_file): Initialize result.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/ldfile.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index e7df081..b968af6 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,9 @@ 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 searches for a linker script unless -T option is specified. * ldfile.c (ldfile_find_command_file): Append the path obtained diff --git a/ld/ldfile.c b/ld/ldfile.c index 380b56a..422416a 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; |