aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/jim.c b/jim.c
index 08c448b..6e0cdb7 100644
--- a/jim.c
+++ b/jim.c
@@ -12292,6 +12292,10 @@ static int Jim_LsearchCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *
}
}
+ argc -= i;
+ if (argc < 2) {
+ goto wrongargs;
+ }
argv += i;
if (opt_all) {