diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-11-17 14:33:17 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-11-17 14:33:17 (GMT) |
commit | 435f4ad8b025bffd4ac5ff2ed09a7bf337d08a87 (patch) | |
tree | 82a7bf035e35111ec29ffa3155092d1435cf1b43 | |
parent | 7321be8f6d105691c8e13107e15ec6264e6f1353 (diff) | |
download | CMake-435f4ad8b025bffd4ac5ff2ed09a7bf337d08a87.zip CMake-435f4ad8b025bffd4ac5ff2ed09a7bf337d08a87.tar.gz CMake-435f4ad8b025bffd4ac5ff2ed09a7bf337d08a87.tar.bz2 |
BUG: fix incrementing past end
-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 9707112..f04f79a 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 |