[git commit] bc: fix "dc only" bug

Denys Vlasenko vda.linux at googlemail.com
Thu Dec 13 21:49:59 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=5f263f406c99ebdf7d9c850c72f67ea0da095662
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 miscutils/bc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/miscutils/bc.c b/miscutils/bc.c
index 1f0802a4d..606037abc 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);
 


More information about the busybox-cvs mailing list