projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
680ccd3
)
bc: remove superfluous assigment
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 31 Dec 2018 18:50:06 +0000
(19:50 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 31 Dec 2018 18:50:06 +0000
(19:50 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c
patch
|
blob
|
history
diff --git
a/miscutils/bc.c
b/miscutils/bc.c
index 798bc0a3e072aa82e48d5019f1bfb249bb6107d2..febf51cfda21df8ab4849a261d99ce777200b635 100644
(file)
--- 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;