summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmSystemTools.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 3553259..41444ad 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1152,6 +1152,11 @@ void cmSystemTools::ExpandListArgument(const std::string& arg,
{
newArgVec.push_back(*c);
}
+ else
+ {
+ // Terminate the loop properly.
+ --c;
+ }
}
} break;
case '[':