From: Denys Vlasenko Date: Tue, 8 Jan 2019 18:32:38 +0000 (+0100) Subject: bc: remove "empty expression" check/message, parsing fails in these cases anyway X-Git-Tag: 1_30_1~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c28dc0b58bac65e3904828a82ea29712ba967e84;p=oweals%2Fbusybox.git bc: remove "empty expression" check/message, parsing fails in these cases anyway function old new delta zbc_parse_expr 1848 1818 -30 Signed-off-by: Denys Vlasenko --- diff --git a/miscutils/bc.c b/miscutils/bc.c index 6dd8c9d1f..cef0637bf 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c @@ -4780,9 +4780,10 @@ static BC_STATUS zbc_parse_expr(uint8_t flags) break; case BC_LEX_RPAREN: dbg_lex("%s:%d LEX_RPAREN", __func__, __LINE__); - if (p->lex_last == BC_LEX_LPAREN) { - RETURN_STATUS(bc_error("empty expression")); - } +//why? +// if (p->lex_last == BC_LEX_LPAREN) { +// RETURN_STATUS(bc_error_at("empty expression")); +// } if (bin_last || prev == XC_INST_BOOL_NOT) RETURN_STATUS(bc_error_bad_expression()); if (nparens == 0) {