diff options
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/bc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index 9f05cad0c..143bb64b1 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c | |||
| @@ -5586,8 +5586,9 @@ static char *bc_program_name(char *code, size_t *bgn) | |||
| 5586 | static void bc_program_printString(const char *str) | 5586 | static void bc_program_printString(const char *str) |
| 5587 | { | 5587 | { |
| 5588 | #if ENABLE_DC | 5588 | #if ENABLE_DC |
| 5589 | // Huh? Example when this happens? | ||
| 5590 | if (!str[0]) { | 5589 | if (!str[0]) { |
| 5590 | // Example: echo '[]ap' | dc | ||
| 5591 | // should print two bytes: 0x00, 0x0A | ||
| 5591 | bb_putchar('\0'); | 5592 | bb_putchar('\0'); |
| 5592 | return; | 5593 | return; |
| 5593 | } | 5594 | } |
