summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-04-08 20:05:23 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-04-08 20:05:23 (GMT)
commitcec897edc43de3504b0c8bf7ed6c762a176004f0 (patch)
tree128f0a0e8aa3acbd06c88d888fc2353635050195 /Source
parent871d80696bc1fea2ff269ad080f5ba9cc32a289b (diff)
downloadCMake-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.cxx5
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 ';':