bc: do not allow "()" as a valid expression
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 5 Dec 2018 21:40:44 +0000 (22:40 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 5 Dec 2018 21:40:44 +0000 (22:40 +0100)
commit050b0fe9a7b5a3e4aab1d308637ae6a3bb0a67cb
tree139305018eaa8785ea050b086e73324ada042ff8
parentcca79a00647ff05229265192063183677a66a4d6
bc: do not allow "()" as a valid expression

function                                             old     new   delta
bc_parse_expr_empty_ok                                 -    2178   +2178
bc_parse_expr                                       2178      49   -2129
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 2178/-2129)         Total: 49 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c