summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-03-23 23:12:22 +0100
committerTianjie Xu <xunchang@google.com>2017-03-23 23:12:22 +0100
commitbf607c4a2825b5577bb131450cfce8c183737770 (patch)
treed5bac6d3047fc70170c21be642f66e36cc239643
parentMerge "Redundant checking of STL container element" (diff)
downloadandroid_bootable_recovery-bf607c4a2825b5577bb131450cfce8c183737770.tar
android_bootable_recovery-bf607c4a2825b5577bb131450cfce8c183737770.tar.gz
android_bootable_recovery-bf607c4a2825b5577bb131450cfce8c183737770.tar.bz2
android_bootable_recovery-bf607c4a2825b5577bb131450cfce8c183737770.tar.lz
android_bootable_recovery-bf607c4a2825b5577bb131450cfce8c183737770.tar.xz
android_bootable_recovery-bf607c4a2825b5577bb131450cfce8c183737770.tar.zst
android_bootable_recovery-bf607c4a2825b5577bb131450cfce8c183737770.zip
Diffstat (limited to '')
-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) {