summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
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 ';':