summary refs log tree commit diff
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-03-26 18:14:18 +0300
committerNakidai <nakidai@disroot.org>2025-03-26 18:14:18 +0300
commitbe214b4b1cf869af86d402278fc17ce5e1f79786 (patch)
tree6f1232c74c24efdd1ffcd19a0b234d2043c53c87
parent607dd6038766a7eb18b9a6cdfe53fa8983f7e496 (diff)
download3cl-be214b4b1cf869af86d402278fc17ce5e1f79786.tar.gz
3cl-be214b4b1cf869af86d402278fc17ce5e1f79786.zip
Fix infinite loop
-rw-r--r--executor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor.c b/executor.c
index ae92315..88667f6 100644
--- a/executor.c
+++ b/executor.c
@@ -258,7 +258,7 @@ enum cccl_ExecutorStatus cccl_execute(struct cccl_Node *code, struct cccl_Variab
             p = &n;
         } else
         {
-            short *p = get_variable(code->value, scope);
+            p = get_variable(code->value, scope);
             if (!p)
                 errx(1, "Cannot loop over non-existent variable %c", code->value);
         }