summaryrefslogtreecommitdiffhomepage
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-12-31 19:50:06 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-12-31 19:50:06 +0100
commit8797adc1c6e84789c261ee24afe5a1cbfaddba6b (patch)
tree2eb0b711e8ce48d4ab8c95bb3bf7c531aba0d450 /miscutils
parent680ccd357395ad081afe821ffbeef1ff338fe41d (diff)
bc: remove superfluous assigment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/bc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 798bc0a3e..febf51cfd 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -2642,7 +2642,6 @@ static void bc_num_parseBase(BcNum *n, const char *val, unsigned base_t)
BcNum base;
BcDig temp_digs[ULONG_NUM_BUFSIZE];
BcDig base_digs[ULONG_NUM_BUFSIZE];
- BcDig c = '\0';
size_t digits;
bc_num_init_DEF_SIZE(&mult);
@@ -2657,6 +2656,7 @@ static void bc_num_parseBase(BcNum *n, const char *val, unsigned base_t)
for (;;) {
unsigned v;
+ char c;
c = *val++;
if (c == '\0') goto int_err;
@@ -2679,6 +2679,7 @@ static void bc_num_parseBase(BcNum *n, const char *val, unsigned base_t)
digits = 0;
for (;;) {
unsigned v;
+ char c;
c = *val++;
if (c == '\0') break;