[git commit] bc: G.prog.zero does not need initializing num[] vector

Denys Vlasenko vda.linux at googlemail.com
Thu Dec 27 17:08:49 UTC 2018


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

function                                             old     new   delta
bc_vm_init                                           676     665     -11

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

diff --git a/miscutils/bc.c b/miscutils/bc.c
index 9a0db2172..09cc45254 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -7156,7 +7156,7 @@ static void bc_program_free(void)
 	bc_vec_free(&G.prog.results);
 	bc_vec_free(&G.prog.exestack);
 	IF_BC(bc_num_free(&G.prog.last);)
-	IF_BC(bc_num_free(&G.prog.zero);)
+	//IF_BC(bc_num_free(&G.prog.zero);)
 	IF_BC(bc_num_free(&G.prog.one);)
 	bc_vec_free(&G.input_buffer);
 }
@@ -7184,7 +7184,7 @@ static void bc_program_init(void)
 	IF_BC(bc_num_init_DEF_SIZE(&G.prog.last);)
 	//IF_BC(bc_num_zero(&G.prog.last);) - already is
 
-	bc_num_init_DEF_SIZE(&G.prog.zero);
+	//bc_num_init_DEF_SIZE(&G.prog.zero); - not needed
 	//bc_num_zero(&G.prog.zero); - already is
 
 	IF_BC(bc_num_init_DEF_SIZE(&G.prog.one);)


More information about the busybox-cvs mailing list