diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-04-08 20:05:23 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-04-08 20:05:23 (GMT) |
commit | cec897edc43de3504b0c8bf7ed6c762a176004f0 (patch) | |
tree | 128f0a0e8aa3acbd06c88d888fc2353635050195 /Source | |
parent | 871d80696bc1fea2ff269ad080f5ba9cc32a289b (diff) | |
download | CMake-cec897edc43de3504b0c8bf7ed6c762a176004f0.zip CMake-cec897edc43de3504b0c8bf7ed6c762a176004f0.tar.gz CMake-cec897edc43de3504b0c8bf7ed6c762a176004f0.tar.bz2 |
ENH: half fix for 6688, don't let [ count go negative
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmSystemTools.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index bf723c5..f6d8e6c 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1270,7 +1270,10 @@ void cmSystemTools::ExpandListArgument(const std::string& arg, } break; case ']': { - --squareNesting; + if(squareNesting) + { + --squareNesting; + } newArgVec.push_back(*c); } break; case ';': |