diff options
author | Stefan Eßer <se@FreeBSD.org> | 2022-06-15 09:34:25 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2022-06-15 09:34:25 +0000 |
commit | 3f739b0595b7d6ac4bac9aaa1cae0910f11f92e2 (patch) | |
tree | 4f29f77712e555a8afac6a2cd238169df61011d2 | |
parent | 6982f79963fcee7cb6a68799eb83f6a4a53165a2 (diff) |
vendor/bc: import version 5.3.3vendor/bc/5.3.3
This version fixes a build issue caused by the strict compiler
warnings used when building FreeBSD base system components.
-rw-r--r-- | NEWS.md | 7 | ||||
-rw-r--r-- | include/version.h | 2 | ||||
-rw-r--r-- | src/history.c | 6 |
3 files changed, 10 insertions, 5 deletions
@@ -1,5 +1,12 @@ # News +## 5.3.3 + +This is a production release that fixes a build problem in the FreeBSD base +system. + +All other users do **NOT** need to upgrade. + ## 5.3.2 This is a production release that fixes prompt bugs with editline and readline diff --git a/include/version.h b/include/version.h index 63578e0fe8f0..4400e4f59ccd 100644 --- a/include/version.h +++ b/include/version.h @@ -37,6 +37,6 @@ #define BC_VERSION_H /// The current version. -#define VERSION 5.3.2 +#define VERSION 5.3.3 #endif // BC_VERSION_H diff --git a/src/history.c b/src/history.c index 47ed6cda7f22..3433c0ed8ddf 100644 --- a/src/history.c +++ b/src/history.c @@ -157,13 +157,14 @@ sigjmp_buf bc_history_jmpbuf; volatile sig_atomic_t bc_history_inlinelib; static char* bc_history_prompt; +static char bc_history_no_prompt[] = ""; static HistEvent bc_history_event; static char* bc_history_promptFunc(EditLine* el) { BC_UNUSED(el); - return bc_history_prompt; + return BC_PROMPT ? bc_history_prompt : bc_history_no_prompt; } void @@ -172,9 +173,6 @@ bc_history_init(BcHistory* h) BcVec v; char* home; - // Just set a blank prompt when it is turned off. - if (!BC_PROMPT) bc_history_prompt = ""; - home = getenv("HOME"); // This will hold the true path to the editrc. |