summaryrefslogtreecommitdiff
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-09-12 09:44:06 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-09-12 09:44:06 +0300
commitb62e78e6d7e4307678fa172488302375559dcbf2 (patch)
treed6ad9bf682f758b3ebaf8f6ba4281dafb24af84b /interpret.h
parentdab291a6bd1b7a202758747da70fa125ffeb75ed (diff)
downloadgawk-b62e78e6d7e4307678fa172488302375559dcbf2.tar.gz
Small fix in interpret.h.
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h5
1 files changed, 1 insertions, 4 deletions
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) {