Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf607c4a authored by Tianjie Xu's avatar Tianjie Xu
Browse files

Don't fail ReadArgs if length to parse is 0

Test: recovery component tests pass
Change-Id: I0946ba498d845ec552ae7e4c79dc94618b2fdf6d
parent b56a3c2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {