From 2aea3b89ef6059514709936636b62eb0bd9e3676 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Thu, 11 Dec 2008 21:17:30 +0000 Subject: [PATCH] Correctly handle empty compound statements in check_reachable(), i.e. continue at the statement after the {}. [r24548] --- parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser.c b/parser.c index d570caf..4409e92 100644 --- a/parser.c +++ b/parser.c @@ -5825,6 +5825,8 @@ static void check_reachable(statement_t *const stmt) case STATEMENT_COMPOUND: next = stmt->compound.statements; + if (next == NULL) + next = stmt->base.next; break; case STATEMENT_RETURN: { -- 2.20.1