diff options
author | Denys Vlasenko | 2018-12-26 21:01:41 +0100 |
---|---|---|
committer | Denys Vlasenko | 2018-12-26 21:01:41 +0100 |
commit | 8af11087b20e2e9d19836a070ea460b7bec82a8f (patch) | |
tree | dd12acc76dff082692322e16abd04d3e90cc3be5 | |
parent | ab9a98602f9a0c37f9382a57e421fe4e058d4a67 (diff) | |
download | busybox-8af11087b20e2e9d19836a070ea460b7bec82a8f.zip busybox-8af11087b20e2e9d19836a070ea460b7bec82a8f.tar.gz |
bc: undo debugging change, add a small optimization
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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 cf04e9f..af94981 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c @@ -3016,7 +3016,7 @@ static BC_STATUS zbc_lex_string(void) for (;;) { char c = peek_inbuf(); // strings can cross lines if (c == '\0') { - RETURN_STATUS(bc_error("unterminated string1")); + RETURN_STATUS(bc_error("unterminated string")); } if (c == '"') break; @@ -3060,7 +3060,7 @@ static BC_STATUS zbc_lex_comment(void) check_star: if (c == '*') { p->lex_inbuf++; - c = peek_inbuf(); + c = *p->lex_inbuf; // no need to peek_inbuf() if (c == '/') break; goto check_star; |