diff options
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index f1b59ba..7678601 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -1222,6 +1222,7 @@ void SystemTools::ConvertToUnixSlashes(kwsys_stl::string& path) if(!path.empty()) { // if there is a tilda ~ then replace it with HOME + pathCString = path.c_str(); if(*pathCString == '~') { const char* homeEnv = SystemTools::GetEnv("HOME"); @@ -1231,6 +1232,7 @@ void SystemTools::ConvertToUnixSlashes(kwsys_stl::string& path) } } + pathCString = path.c_str(); if (*(pathCString+(path.size()-1)) == '/') { path = path.substr(0, path.size()-1); |