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;
|
} break;
|
||||||
case ']':
|
case ']':
|
||||||
{
|
{
|
||||||
--squareNesting;
|
if(squareNesting)
|
||||||
|
{
|
||||||
|
--squareNesting;
|
||||||
|
}
|
||||||
newArgVec.push_back(*c);
|
newArgVec.push_back(*c);
|
||||||
} break;
|
} break;
|
||||||
case ';':
|
case ';':
|
||||||
|
|
Loading…
Reference in New Issue