From: Richard Sandiford Date: Tue, 12 Oct 2010 15:30:24 +0000 (+0000) Subject: gold/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7411e9a828d5384857b444cc701cdab6e5f4d676;p=binutils-gdb.git gold/ * fileread.cc (Input_file::find_file): Initialize *found_name and *namep when using the fallback search for case 4. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index c57ed0614f7..88bc1505eed 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2010-10-12 Richard Sandiford + + * fileread.cc (Input_file::find_file): Initialize *found_name + and *namep when using the fallback search for case 4. + 2010-10-11 Cary Coutant * options.h (class General_options): Redefine -z lazy as an alias for diff --git a/gold/fileread.cc b/gold/fileread.cc index f626028fb52..a16738a0d59 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; }