mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
BUG: Fix GetFilenameName to not use uninitialized search position in win32 version.
This commit is contained in:
parent
b370936a25
commit
bf70e83397
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user