OSDN Git Service

gold/
authorrsandifo <rsandifo>
Tue, 12 Oct 2010 15:30:24 +0000 (15:30 +0000)
committerrsandifo <rsandifo>
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 c57ed06..88bc150 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 f626028..a16738a 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;
     }