ENH: half fix for 6688, don't let [ count go negative
This commit is contained in:
parent
871d80696b
commit
cec897edc4
|
@ -1270,7 +1270,10 @@ void cmSystemTools::ExpandListArgument(const std::string& arg,
|
|||
} break;
|
||||
case ']':
|
||||
{
|
||||
--squareNesting;
|
||||
if(squareNesting)
|
||||
{
|
||||
--squareNesting;
|
||||
}
|
||||
newArgVec.push_back(*c);
|
||||
} break;
|
||||
case ';':
|
||||
|
|
Loading…
Reference in New Issue