commit | 5d1e7fbadd642d4633b0899dd2c0935b121826dd | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Sun Mar 26 00:02:08 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Sun Mar 26 00:02:08 2017 +0000 |
tree | 00c911e689fbb37f87731caa6f1039ece3128e21 | |
parent | 45f967a1ad1c42c2b32c9de9bb09fd9330048bf5 [diff] | |
parent | 5f9617a51f44d859f219edfe1fb9e8245512be6b [diff] |
Merge "Don't fail ReadArgs if length to parse is 0" am: f4c949a41e am: e102ea13ee am: 5f9617a51f Change-Id: I674484fcdde5d9b7f847d6efef667638a8da6936
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) {