From 5ce35938caca894357dbe88d0857237fcd49ed2c Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 17 Dec 2007 11:14:04 +0000 Subject: [PATCH] Fix parsing of K&R style function definitions. [r18777] --- parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parser.c b/parser.c index 920fa15..573f186 100644 --- a/parser.c +++ b/parser.c @@ -1805,6 +1805,7 @@ static declaration_t *parse_identifier_list(void) declaration_t *last_declaration = NULL; do { declaration_t *const declaration = allocate_declaration_zero(); + declaration->type = NULL; /* a K&R parameter list has no types, yet */ declaration->source_position = token.source_position; declaration->symbol = token.v.symbol; next_token(); -- 2.20.1