summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-13 21:38:00 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-13 21:38:00 +0200
commitdd67e7b992ded6b02a1c476f79fd9dc948d45730 (patch)
tree20f5d6833ba681006280a46a9410f7518657dab1
parent8001ced3a088fc26a8c4e60dcd31dbba6c7b0eba (diff)
eval: use ut_getscope() in ut_execute_local()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 5f4feb8..db67fa2 100644
--- a/eval.c
+++ b/eval.c
@@ -483,7 +483,7 @@ ut_execute_local(struct ut_state *state, uint32_t off)
if (label)
rv = ut_setval(
- state->stack.scope[state->stack.off-1], label->val,
+ ut_getscope(state, 0), label->val,
as->tree.operand[1] ? ut_execute_op(state, as->tree.operand[1]) : NULL);
as = ut_get_op(state, as->tree.next);