From 8673510d7e771e65fed0b1cb1a0733d52e263833 Mon Sep 17 00:00:00 2001 From: Laurent Huberdeau Date: Sun, 29 Sep 2024 23:34:52 -0400 Subject: [PATCH] Fix compound test when OPTIMIZE_CONSTANT_PARAM --- sh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sh.c b/sh.c index 82a4d4f2..ec11f53b 100644 --- a/sh.c +++ b/sh.c @@ -2109,6 +2109,8 @@ void mark_mutable_variables_statement(ast node) { int op = get_op(node); ast params; + if (node == 0) return; + if (op == IF_KW) { mark_mutable_variables_statement(get_child(node, 0)); if (get_child(node, 1)) mark_mutable_variables_body(get_child(node, 1));