diff options
author | Tianjie Xu <xunchang@google.com> | 2017-03-26 00:53:30 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-03-26 00:53:31 +0100 |
commit | f4c949a41e1ffada4d08dfa52995bbf82bc158f5 (patch) | |
tree | 52e408f99b898bcac706b577c1ccfde4b1a03910 /edify | |
parent | Merge "updater: Remove some redundant arguments." (diff) | |
parent | Don't fail ReadArgs if length to parse is 0 (diff) | |
download | android_bootable_recovery-f4c949a41e1ffada4d08dfa52995bbf82bc158f5.tar android_bootable_recovery-f4c949a41e1ffada4d08dfa52995bbf82bc158f5.tar.gz android_bootable_recovery-f4c949a41e1ffada4d08dfa52995bbf82bc158f5.tar.bz2 android_bootable_recovery-f4c949a41e1ffada4d08dfa52995bbf82bc158f5.tar.lz android_bootable_recovery-f4c949a41e1ffada4d08dfa52995bbf82bc158f5.tar.xz android_bootable_recovery-f4c949a41e1ffada4d08dfa52995bbf82bc158f5.tar.zst android_bootable_recovery-f4c949a41e1ffada4d08dfa52995bbf82bc158f5.zip |
Diffstat (limited to 'edify')
-rw-r--r-- | edify/expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/edify/expr.cpp b/edify/expr.cpp index 2b7fd7a6a..54ab3325c 100644 --- a/edify/expr.cpp +++ b/edify/expr.cpp @@ -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) { |