diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-27 18:08:30 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-27 18:08:49 +0100 |
commit | db8d607514c684fe208e8d8cf02864731a123bf6 (patch) | |
tree | b6488d03d9af8ae10811a9c5529a3c74ab52f3c4 /miscutils | |
parent | 3d27d435dbe7d39894257894b9dd32bfa607604c (diff) | |
download | busybox-w32-db8d607514c684fe208e8d8cf02864731a123bf6.tar.gz busybox-w32-db8d607514c684fe208e8d8cf02864731a123bf6.tar.bz2 busybox-w32-db8d607514c684fe208e8d8cf02864731a123bf6.zip |
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.c | 4 |
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) | |||
7156 | bc_vec_free(&G.prog.results); | 7156 | bc_vec_free(&G.prog.results); |
7157 | bc_vec_free(&G.prog.exestack); | 7157 | bc_vec_free(&G.prog.exestack); |
7158 | IF_BC(bc_num_free(&G.prog.last);) | 7158 | IF_BC(bc_num_free(&G.prog.last);) |
7159 | IF_BC(bc_num_free(&G.prog.zero);) | 7159 | //IF_BC(bc_num_free(&G.prog.zero);) |
7160 | IF_BC(bc_num_free(&G.prog.one);) | 7160 | IF_BC(bc_num_free(&G.prog.one);) |
7161 | bc_vec_free(&G.input_buffer); | 7161 | bc_vec_free(&G.input_buffer); |
7162 | } | 7162 | } |
@@ -7184,7 +7184,7 @@ static void bc_program_init(void) | |||
7184 | IF_BC(bc_num_init_DEF_SIZE(&G.prog.last);) | 7184 | IF_BC(bc_num_init_DEF_SIZE(&G.prog.last);) |
7185 | //IF_BC(bc_num_zero(&G.prog.last);) - already is | 7185 | //IF_BC(bc_num_zero(&G.prog.last);) - already is |
7186 | 7186 | ||
7187 | bc_num_init_DEF_SIZE(&G.prog.zero); | 7187 | //bc_num_init_DEF_SIZE(&G.prog.zero); - not needed |
7188 | //bc_num_zero(&G.prog.zero); - already is | 7188 | //bc_num_zero(&G.prog.zero); - already is |
7189 | 7189 | ||
7190 | IF_BC(bc_num_init_DEF_SIZE(&G.prog.one);) | 7190 | IF_BC(bc_num_init_DEF_SIZE(&G.prog.one);) |