[git commit] bc: comment out code which appears to be never reached
Denys Vlasenko
vda.linux at googlemail.com
Wed Dec 26 17:59:42 UTC 2018
commit: https://git.busybox.net/busybox/commit/?id=2f7352b4f5d9d319de03b7bce2b877e2be90e8c3
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
function old new delta
zbc_lex_next 1587 1568 -19
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
miscutils/bc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 632158b7f..2237a41b5 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -2901,8 +2901,9 @@ static BC_STATUS zbc_lex_next(void)
BcStatus s;
p->lex_last = p->lex;
- if (p->lex_last == XC_LEX_EOF)
- RETURN_STATUS(bc_error("end of file"));
+//why?
+// if (p->lex_last == XC_LEX_EOF)
+// RETURN_STATUS(bc_error("end of file"));
// Loop until failure or we don't have whitespace. This
// is so the parser doesn't get inundated with whitespace.
More information about the busybox-cvs
mailing list