diff options
author | Denys Vlasenko | 2019-01-08 19:32:38 +0100 |
---|---|---|
committer | Denys Vlasenko | 2019-02-14 14:40:57 +0100 |
commit | c28dc0b58bac65e3904828a82ea29712ba967e84 (patch) | |
tree | 2ec1abd310b410b85f7ba9e9975dce84a00283dd /miscutils | |
parent | 60fb5865978624171ca03a17c9a044c67cf0abb3 (diff) | |
download | busybox-c28dc0b58bac65e3904828a82ea29712ba967e84.zip busybox-c28dc0b58bac65e3904828a82ea29712ba967e84.tar.gz |
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 <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/bc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index 6dd8c9d..cef0637 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) { |