summaryrefslogtreecommitdiff
path: root/ecomp-c/ec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-c/ec.c')
-rw-r--r--ecomp-c/ec.c5
1 files 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;