Index: base/base_paths_posix.cc |
diff --git a/base/base_paths_posix.cc b/base/base_paths_posix.cc |
index c5123908d35f3dfefb9fba63edd66985918b4829..00a15696cacda65ab7e22cf1571455048f0fb6e7 100644 |
--- a/base/base_paths_posix.cc |
+++ b/base/base_paths_posix.cc |
@@ -34,7 +34,6 @@ |
namespace base { |
bool PathProviderPosix(int key, FilePath* result) { |
- FilePath path; |
switch (key) { |
case FILE_EXE: |
case FILE_MODULE: { // TODO(evanm): is this correct? |
@@ -82,6 +81,7 @@ bool PathProviderPosix(int key, FilePath* result) { |
// tree configurations (sub-project builds, gyp --output_dir, etc.) |
std::unique_ptr<Environment> env(Environment::Create()); |
std::string cr_source_root; |
+ FilePath path; |
if (env->GetVar("CR_SOURCE_ROOT", &cr_source_root)) { |
path = FilePath(cr_source_root); |
if (PathExists(path)) { |