Browse Source

BUG: fix incrementing past end

Ken Martin 20 years ago
parent
commit
435f4ad8b0
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Source/cmIfCommand.cxx

+ 1 - 3
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