From: Michael Beck Date: Mon, 23 Jun 2008 12:58:04 +0000 (+0000) Subject: BugFix: return invalid statement for invalid goto X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=c1d59e2ca66b8996fd86bb309cb8f875cb9c8f74;p=cparser BugFix: return invalid statement for invalid goto [r20219] --- diff --git a/parser.c b/parser.c index db28f7e..82284c0 100644 --- a/parser.c +++ b/parser.c @@ -7501,7 +7501,7 @@ static statement_t *parse_goto(void) if(token.type != T_IDENTIFIER) { parse_error_expected("while parsing goto", T_IDENTIFIER, NULL); eat_statement(); - return NULL; + goto end_error; } symbol_t *symbol = token.v.symbol; next_token();