diff options
-rw-r--r-- | miscutils/bc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index 656ecd892..b454d4b2b 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c | |||
@@ -4047,14 +4047,11 @@ static BcStatus bc_parse_return(BcParse *p) | |||
4047 | else { | 4047 | else { |
4048 | 4048 | ||
4049 | s = bc_parse_expr(p, 0, bc_parse_next_expr); | 4049 | s = bc_parse_expr(p, 0, bc_parse_next_expr); |
4050 | if (s && s != BC_STATUS_PARSE_EMPTY_EXP) | ||
4051 | return s; | ||
4052 | |||
4053 | if (s == BC_STATUS_PARSE_EMPTY_EXP) { | 4050 | if (s == BC_STATUS_PARSE_EMPTY_EXP) { |
4054 | bc_parse_push(p, BC_INST_RET0); | 4051 | bc_parse_push(p, BC_INST_RET0); |
4055 | s = bc_lex_next(&p->l); | 4052 | s = bc_lex_next(&p->l); |
4056 | if (s) return s; | ||
4057 | } | 4053 | } |
4054 | if (s) return s; | ||
4058 | 4055 | ||
4059 | if (!paren || p->l.t.last != BC_LEX_RPAREN) { | 4056 | if (!paren || p->l.t.last != BC_LEX_RPAREN) { |
4060 | s = bc_posix_error("POSIX requires parentheses around return expressions"); | 4057 | s = bc_posix_error("POSIX requires parentheses around return expressions"); |