aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--interpret.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ee3c929..abef0efd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-09-12 Arnold D. Robbins <arnold@skeeve.com>
+
+ * interpret.h: Remove subscript_in_array variable.
+
2021-09-10 Arnold D. Robbins <arnold@skeeve.com>
* interpret.h: For Op_subscript, don't allow references into
diff --git a/interpret.h b/interpret.h
index 4495d8cc..d52d537e 100644
--- a/interpret.h
+++ b/interpret.h
@@ -67,7 +67,6 @@ r_interpret(INSTRUCTION *code)
Regexp *rp;
NODE *set_array = NULL; /* array with a post-assignment routine */
NODE *set_idx = NULL; /* the index of the array element */
- bool subscript_in_array;
/* array subscript */
@@ -266,9 +265,7 @@ uninitialized_scalar:
t2 = mk_sub(pc->sub_count);
t1 = POP_ARRAY(false);
- subscript_in_array = (in_array(t1, t2) != NULL);
-
- if (! subscript_in_array) {
+ if (in_array(t1, t2) == NULL) {
t2 = force_string(t2);
if (t1 == func_table) {