[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox-cvs
Subject:    [git commit branch/1_30_stable] bc: remove superfluous assigment
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2019-02-14 13:40:57
Message-ID: 20190214134247.7379B8A34D () busybox ! osuosl ! org
[Download RAW message or body]

commit: https://git.busybox.net/busybox/commit/?id=2123ceed18214dcbfa423c0738e0317ce61fab6f
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/1_30_stable

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

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;
_______________________________________________
busybox-cvs mailing list
busybox-cvs@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic