diff options
author | Ken Martin <ken.martin@kitware.com> | 2004-09-06 16:49:40 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2004-09-06 16:49:40 (GMT) |
commit | a5e791ae6658c57cbecff17ddc5cc2764cde56ed (patch) | |
tree | ed2dabf9f1e271d09d0f7d1a46ec8b3ee9cc1887 /Source/kwsys | |
parent | 1b5b6ab30378d0648eccb66c1fc41a7e8c762dea (diff) | |
download | CMake-a5e791ae6658c57cbecff17ddc5cc2764cde56ed.zip CMake-a5e791ae6658c57cbecff17ddc5cc2764cde56ed.tar.gz CMake-a5e791ae6658c57cbecff17ddc5cc2764cde56ed.tar.bz2 |
fix warning
Diffstat (limited to 'Source/kwsys')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index f6826ac..2ab0895 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -719,12 +719,14 @@ void SystemTools::ConvertToUnixSlashes(kwsys_stl::string& path) pos++; } // Remove all // from the path just like most unix shells - int start_find = 0; + int start_find; #ifdef _WIN32 // However, on windows if the first characters are both slashes, // then keep them that way, so that network paths can be handled. start_find = 1; +#else + start_find = 0; #endif while((pos = path.find("//", start_find)) != kwsys_stl::string::npos) |