mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
19076: don't call setupterm with NULL as last argument as that causes
the shell to exit when the terminal is unknown.
This commit is contained in:
parent
6e09c17757
commit
cd89b92a0d
2 changed files with 10 additions and 1 deletions
|
@ -376,7 +376,10 @@ boot_(Module m)
|
|||
{
|
||||
#ifdef HAVE_TIGETSTR
|
||||
# ifdef HAVE_SETUPTERM
|
||||
setupterm((char *)0, 1, (int *)0);
|
||||
int errret;
|
||||
|
||||
if (setupterm((char *)0, 1, &errret) == ERR)
|
||||
return 1;
|
||||
# endif
|
||||
|
||||
if (!createtihash())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue