summaryrefslogtreecommitdiffstats
path: root/edify/expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'edify/expr.cpp')
-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) {