commit | f4c949a41e1ffada4d08dfa52995bbf82bc158f5 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Sat Mar 25 23:53:30 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Mar 25 23:53:31 2017 +0000 |
tree | 52e408f99b898bcac706b577c1ccfde4b1a03910 | |
parent | 5212a00588f2e94b21717e8e253e01a1c772b684 [diff] | |
parent | bf607c4a2825b5577bb131450cfce8c183737770 [diff] |
Merge "Don't fail ReadArgs if length to parse is 0"
diff --git a/edify/expr.cpp b/edify/expr.cpp index 2b7fd7a..54ab332 100644 --- a/edify/expr.cpp +++ b/edify/expr.cpp
@@ -357,7 +357,7 @@ 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) {