From 2a59c66eccd74bf63d7ba09b91807f675519f82e Mon Sep 17 00:00:00 2001 From: David Declerck Date: Wed, 25 Sep 2024 15:46:42 +0200 Subject: [PATCH] Tentative fix for 4935 --- cobc/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cobc/codegen.c b/cobc/codegen.c index 3a344c208..649b6223b 100644 --- a/cobc/codegen.c +++ b/cobc/codegen.c @@ -8198,7 +8198,7 @@ output_perform_until (struct cb_perform *p, cb_tree l) && next) { cb_tree xn; /* Check all INDEXED BY variables used in VARYING */ - for (xn = l; xn; xn = CB_CHAIN (xn)) { + for (xn = l; xn; xn = NULL /*CB_CHAIN (xn)*/) struct cb_field *q; f = CB_FIELD_PTR (CB_PERFORM_VARYING(CB_VALUE (xn))->name); if (!f->flag_indexed_by) continue;