diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-11-17 09:33:17 -0500 |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-11-17 09:33:17 -0500 |
commit | 435f4ad8b025bffd4ac5ff2ed09a7bf337d08a87 (patch) | |
tree | 82a7bf035e35111ec29ffa3155092d1435cf1b43 /Source/cmIfCommand.cxx | |
parent | 7321be8f6d105691c8e13107e15ec6264e6f1353 (diff) | |
download | cmake-435f4ad8b025bffd4ac5ff2ed09a7bf337d08a87.tar.gz |
BUG: fix incrementing past end
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r-- | Source/cmIfCommand.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index 9707112831..f04f79ac6f 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -237,9 +237,7 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args, } newArgs.erase(argP1); argP1 = arg; - argP1++; - argP2 = argP1; - argP2++; + IncrementArguments(newArgs,argP1,argP2); reducible = 1; } // does a command exist |