gold/
authorRichard Sandiford <rdsandiford@googlemail.com>
Tue, 12 Oct 2010 15:30:24 +0000 (15:30 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Tue, 12 Oct 2010 15:30:24 +0000 (15:30 +0000)
* fileread.cc (Input_file::find_file): Initialize *found_name
and *namep when using the fallback search for case 4.

gold/ChangeLog
gold/fileread.cc

index c57ed0614f73e4393c6d4e320454dc62db1cf5a1..88bc1505eed1f32c2ac810f56d98059f42e9dd71 100644 (file)
@@ -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
index f626028fb52bfd1e893948db2450c870a3682c28..a16738a0d593531271af644f6ce4439fb032faed 100644 (file)
@@ -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;
     }