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

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