summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2018-12-13 22:49:59 +0100
committerDenys Vlasenko2018-12-13 22:49:59 +0100
commit5f263f406c99ebdf7d9c850c72f67ea0da095662 (patch)
treea443f70f83711fc545bbb9bdf1c5b29b55e03fd6
parente755e30402e1e8071563e03f442998cac162f295 (diff)
downloadbusybox-5f263f406c99ebdf7d9c850c72f67ea0da095662.zip
busybox-5f263f406c99ebdf7d9c850c72f67ea0da095662.tar.gz
bc: fix "dc only" bug
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--miscutils/bc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 1f0802a..606037a 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -7458,8 +7458,7 @@ static int bc_vm_init(const char *env_len)
G.prog.len = bc_vm_envLen(env_len);
bc_vec_init(&G.files, sizeof(char *), NULL);
- if (IS_BC)
- IF_BC(bc_vm_envArgs();)
+ IF_BC(if (IS_BC) bc_vm_envArgs();)
bc_program_init();
bc_parse_create(&G.prs, BC_PROG_MAIN);