From 578f0b0fdf12dd9b6b1fa0748aaf3a56e68d2627 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 3 Sep 2020 17:37:35 +0200 Subject: initializing list of expressions properly in parameter call generation --- ecomp-c/ec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ecomp-c/ec.c b/ecomp-c/ec.c index 3b044df..1fc0dd6 100644 --- a/ecomp-c/ec.c +++ b/ecomp-c/ec.c @@ -1594,8 +1594,6 @@ static void parseParameterList( Scope *scope, ExpressionNodeList *list ) ExpressionNode *node; Expect( S_lparen ); - list->head = NULL; - list->tail = NULL; do { node = parseExpression( scope ); @@ -1623,6 +1621,9 @@ static void parseProcedureCall( Scope *scope ) ExpressionNode *node; ExpressionNodeList list; + list.head = NULL; + list.tail = NULL; + symbol = get_symbol( scope, ident ); nof_expected_params = 0; -- cgit v1.2.3-54-g00ecf