summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-13 18:37:30 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-13 18:37:30 (GMT)
commitbf70e83397ab8db10f8c65c84f57b2cf0e14aac7 (patch)
tree0946a7e9337133496515f21ada7ebbdeb1ec1b82 /Source/kwsys/SystemTools.cxx
parentb370936a25194d5ce5173f047cc2ca8642c23f6e (diff)
downloadCMake-bf70e83397ab8db10f8c65c84f57b2cf0e14aac7.zip
CMake-bf70e83397ab8db10f8c65c84f57b2cf0e14aac7.tar.gz
CMake-bf70e83397ab8db10f8c65c84f57b2cf0e14aac7.tar.bz2
BUG: Fix GetFilenameName to not use uninitialized search position in win32 version.
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 4598af6..c439775 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -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