mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
Fix subscript out of range crash
This commit is contained in:
@@ -61,7 +61,10 @@ private:
|
||||
std::string GetCurrentValue()
|
||||
{
|
||||
std::string val;
|
||||
val.assign(&this->CurrentValue[0], this->CurrentValue.size());
|
||||
if(this->CurrentValue.size())
|
||||
{
|
||||
val.assign(&this->CurrentValue[0], this->CurrentValue.size());
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user