Merge "Don't fail ReadArgs if length to parse is 0" am: f4c949a41e am: e102ea13ee
am: 5f9617a51f
Change-Id: I674484fcdde5d9b7f847d6efef667638a8da6936
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user