mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-21 18:25:14 +08:00
Add missing const cast for setup_term
https://github.com/fish-shell/fish-shell/issues/1142
This commit is contained in:
parent
5121417725
commit
b04fc5a39e
@ -360,7 +360,7 @@ int input_init()
|
||||
debug(0, _(L"Attempting to use '%ls' instead"), DEFAULT_TERM);
|
||||
env_set(L"TERM", DEFAULT_TERM, ENV_GLOBAL | ENV_EXPORT);
|
||||
const std::string default_term = wcs2string(DEFAULT_TERM);
|
||||
if (setupterm(default_term.c_str(), STDOUT_FILENO, &errret) == ERR)
|
||||
if (setupterm(const_cast<char *>(default_term.c_str()), STDOUT_FILENO, &errret) == ERR)
|
||||
{
|
||||
debug(0, _(L"Could not set up terminal"));
|
||||
exit_without_destructors(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user