BUG: Fix GetFilenameName to not use uninitialized search position in win32 version.

This commit is contained in:
Brad King 2005-04-13 14:37:30 -04:00
parent b370936a25
commit bf70e83397
1 changed files with 1 additions and 1 deletions

View File

@ -2507,7 +2507,7 @@ kwsys_stl::string SystemTools::GetFilenamePath(const kwsys_stl::string& filename
kwsys_stl::string SystemTools::GetFilenameName(const kwsys_stl::string& filename)
{
#if defined(_WIN32)
kwsys_stl::string::size_type slash_pos = filename.find_last_of("/\\", 0, slash_pos);
kwsys_stl::string::size_type slash_pos = filename.find_last_of("/\\");
#else
kwsys_stl::string::size_type slash_pos = filename.find_last_of("/");
#endif