Merge "Don't fail ReadArgs if length to parse is 0"

This commit is contained in:
Tianjie Xu 2017-03-25 23:53:30 +00:00 committed by Gerrit Code Review
commit f4c949a41e

View file

@ -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) {