diff options
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 4e083c3..6b8099c 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -1318,9 +1318,6 @@ kwsys_stl::string SystemTools::CollapseFullPath(const char* in_relative) kwsys_stl::string SystemTools::CollapseFullPath(const char* in_relative, const char* in_base) { - kwsys_stl::string dir, file; - SystemTools::SplitProgramPath(in_relative, dir, file, false); - // Save original working directory. kwsys_stl::string orig = SystemTools::GetCurrentWorkingDirectory(); @@ -1330,6 +1327,9 @@ kwsys_stl::string SystemTools::CollapseFullPath(const char* in_relative, Chdir(in_base); } + kwsys_stl::string dir, file; + SystemTools::SplitProgramPath(in_relative, dir, file, false); + #ifdef _WIN32 // Follow relative path. if(!(dir == "")) |