BUG: fix incrementing past end
This commit is contained in:
parent
7321be8f6d
commit
435f4ad8b0
@ -237,9 +237,7 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args,
|
|||||||
}
|
}
|
||||||
newArgs.erase(argP1);
|
newArgs.erase(argP1);
|
||||||
argP1 = arg;
|
argP1 = arg;
|
||||||
argP1++;
|
IncrementArguments(newArgs,argP1,argP2);
|
||||||
argP2 = argP1;
|
|
||||||
argP2++;
|
|
||||||
reducible = 1;
|
reducible = 1;
|
||||||
}
|
}
|
||||||
// does a command exist
|
// does a command exist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user