From 89e9fbdcfe3cab2253c8c8e856ea10f80ab094e0 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Wed, 3 Dec 2008 09:23:24 +0000 Subject: [PATCH] When parsing k&r parameter identifier lists, do not add the entities to the scope, if we have none. This happens for inner declarators. [r24249] --- parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser.c b/parser.c index 7e77c60..d218ec3 100644 --- a/parser.c +++ b/parser.c @@ -4079,7 +4079,8 @@ static void parse_identifier_list(scope_t *scope) /* a K&R parameter has no type, yet */ next_token(); - append_entity(scope, entity); + if (scope != NULL) + append_entity(scope, entity); if (token.type != ',') { break; -- 2.20.1