ENH: half fix for 6688, don't let [ count go negative

This commit is contained in:
Bill Hoffman 2008-04-08 16:05:23 -04:00
parent 871d80696b
commit cec897edc4
1 changed files with 4 additions and 1 deletions

View File

@ -1270,7 +1270,10 @@ void cmSystemTools::ExpandListArgument(const std::string& arg,
} break;
case ']':
{
--squareNesting;
if(squareNesting)
{
--squareNesting;
}
newArgVec.push_back(*c);
} break;
case ';':