diff options
author | Richard Sandiford <rsandifo@nildram.co.uk> | 2010-10-12 15:30:24 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@nildram.co.uk> | 2010-10-12 15:30:24 +0000 |
commit | d7e9deda149e8023bcc47a2792a138919dce8053 (patch) | |
tree | 18e9958b89255ae0d83741c7de3aaf5e730c73fb /gold | |
parent | 053ff1828369b3850c69f68d336168a9da4b3fc4 (diff) | |
download | binutils-redhat-d7e9deda149e8023bcc47a2792a138919dce8053.tar.gz |
gold/
* fileread.cc (Input_file::find_file): Initialize *found_name
and *namep when using the fallback search for case 4.
Diffstat (limited to 'gold')
-rw-r--r-- | gold/ChangeLog | 5 | ||||
-rw-r--r-- | gold/fileread.cc | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index c57ed0614f..88bc1505ee 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2010-10-12 Richard Sandiford <richard.sandiford@linaro.org> + + * fileread.cc (Input_file::find_file): Initialize *found_name + and *namep when using the fallback search for case 4. + 2010-10-11 Cary Coutant <ccoutant@google.com> * options.h (class General_options): Redefine -z lazy as an alias for diff --git a/gold/fileread.cc b/gold/fileread.cc index f626028fb5..a16738a0d5 100644 --- a/gold/fileread.cc +++ b/gold/fileread.cc @@ -963,6 +963,8 @@ Input_file::find_file(const Dirsearch& dirpath, int* pindex, input_argument->name()); return false; } + *found_name = input_argument->name(); + *namep = name; *pindex = index + 1; return true; } |