summaryrefslogtreecommitdiffhomepage
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-12-27 18:08:30 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-12-27 18:08:49 +0100
commitdb8d607514c684fe208e8d8cf02864731a123bf6 (patch)
treeb6488d03d9af8ae10811a9c5529a3c74ab52f3c4 /miscutils
parent3d27d435dbe7d39894257894b9dd32bfa607604c (diff)
bc: G.prog.zero does not need initializing num[] vector
function old new delta bc_vm_init 676 665 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/bc.c4
1 files 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);)