Merge "Don't fail ReadArgs if length to parse is 0"
This commit is contained in:
commit
f4c949a41e
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ bool ReadArgs(State* state, const std::vector<std::unique_ptr<Expr>>& argv,
|
|||
if (args == nullptr) {
|
||||
return false;
|
||||
}
|
||||
if (len == 0 || start + len > argv.size()) {
|
||||
if (start + len > argv.size()) {
|
||||
return false;
|
||||
}
|
||||
for (size_t i = start; i < start + len; ++i) {
|
||||
|
|
Loading…
Reference in a new issue