diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-10 20:56:08 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-10 20:56:44 +0100 |
commit | 91cde95916b30d74a9a53127c055403dfce7a838 (patch) | |
tree | 8de92da424faca916d7d4765df228a9e09d51e6f | |
parent | 628bf1bc63aedf696f3de184ddf4cb348828ad66 (diff) | |
download | busybox-w32-91cde95916b30d74a9a53127c055403dfce7a838.tar.gz busybox-w32-91cde95916b30d74a9a53127c055403dfce7a838.tar.bz2 busybox-w32-91cde95916b30d74a9a53127c055403dfce7a838.zip |
bc: it's not clear bc_vm_file() always exits on errors, remove ERRORS_ARE_FATAL
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | miscutils/bc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index 6dc0f5441..c756d8cd6 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c | |||
@@ -7118,9 +7118,6 @@ err: | |||
7118 | free(data); | 7118 | free(data); |
7119 | return s; | 7119 | return s; |
7120 | } | 7120 | } |
7121 | #if ERRORS_ARE_FATAL | ||
7122 | # define bc_vm_file(...) (bc_vm_file(__VA_ARGS__), BC_STATUS_SUCCESS) | ||
7123 | #endif | ||
7124 | 7121 | ||
7125 | static BcStatus bc_vm_stdin(void) | 7122 | static BcStatus bc_vm_stdin(void) |
7126 | { | 7123 | { |
@@ -7421,7 +7418,7 @@ static BcStatus bc_vm_exec(void) | |||
7421 | return s; | 7418 | return s; |
7422 | } | 7419 | } |
7423 | 7420 | ||
7424 | if (IS_BC || (option_mask32 & BC_FLAG_I)) | 7421 | if (IS_BC || (option_mask32 & BC_FLAG_I)) |
7425 | s = bc_vm_stdin(); | 7422 | s = bc_vm_stdin(); |
7426 | 7423 | ||
7427 | if (!s && !BC_PARSE_CAN_EXEC(&G.prs)) | 7424 | if (!s && !BC_PARSE_CAN_EXEC(&G.prs)) |