BUG: Added missing variable initialization that was accidentally removed on the previsous commit.

This commit is contained in:
Brad King 2005-04-15 13:56:23 -04:00
parent 370a39ce4b
commit 66095be685
1 changed files with 1 additions and 1 deletions

View File

@ -1245,7 +1245,7 @@ kwsys_stl::string SystemTools::ConvertToUnixOutputPath(const char* path)
kwsys_stl::string ret = path;
// remove // except at the beginning might be a cygwin drive
kwsys_stl::string::size_type pos;
kwsys_stl::string::size_type pos=0;
while((pos = ret.find("//", pos)) != kwsys_stl::string::npos)
{
ret.erase(pos, 1);