mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 20:49:41 +00:00
Fix subscript out of range crash
This commit is contained in:
parent
082c87e528
commit
d6b71078da
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user