From 435f4ad8b025bffd4ac5ff2ed09a7bf337d08a87 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 17 Nov 2005 09:33:17 -0500 Subject: BUG: fix incrementing past end --- Source/cmIfCommand.cxx | 4 +--- 1 file changed, 1 insertion(+), 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 &args, } newArgs.erase(argP1); argP1 = arg; - argP1++; - argP2 = argP1; - argP2++; + IncrementArguments(newArgs,argP1,argP2); reducible = 1; } // does a command exist -- cgit v0.12