From a5e791ae6658c57cbecff17ddc5cc2764cde56ed Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Mon, 6 Sep 2004 12:49:40 -0400 Subject: [PATCH] fix warning --- Source/kwsys/SystemTools.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index f6826acbe..2ab089540 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)