summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-03-26 01:02:08 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-03-26 01:02:08 +0100
commit5d1e7fbadd642d4633b0899dd2c0935b121826dd (patch)
tree00c911e689fbb37f87731caa6f1039ece3128e21
parentMerge "updater: Remove some redundant arguments." am: 5212a00588 am: 4ae56a3586 (diff)
parentMerge "Don't fail ReadArgs if length to parse is 0" am: f4c949a41e (diff)
downloadandroid_bootable_recovery-5d1e7fbadd642d4633b0899dd2c0935b121826dd.tar
android_bootable_recovery-5d1e7fbadd642d4633b0899dd2c0935b121826dd.tar.gz
android_bootable_recovery-5d1e7fbadd642d4633b0899dd2c0935b121826dd.tar.bz2
android_bootable_recovery-5d1e7fbadd642d4633b0899dd2c0935b121826dd.tar.lz
android_bootable_recovery-5d1e7fbadd642d4633b0899dd2c0935b121826dd.tar.xz
android_bootable_recovery-5d1e7fbadd642d4633b0899dd2c0935b121826dd.tar.zst
android_bootable_recovery-5d1e7fbadd642d4633b0899dd2c0935b121826dd.zip
-rw-r--r--edify/expr.cpp2
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) {