mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
Add errret param to other calls to setupterm
This commit is contained in:
parent
22d1aaa27d
commit
c80bd104d2
|
@ -1069,8 +1069,8 @@ static void init(int mangle_descriptors, int out)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
if (setupterm(0, STDOUT_FILENO, 0) == ERR)
|
||||
int errret;
|
||||
if (setupterm(0, STDOUT_FILENO, &errret) == ERR)
|
||||
{
|
||||
debug(0, _(L"Could not set up terminal"));
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user