mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
users/14548: Src/Modules/termcap.c: prevent libtermcap from exiting on an
unknown terminal type
This commit is contained in:
parent
816e6be1e0
commit
96feec40a5
1 changed files with 4 additions and 1 deletions
|
@ -369,7 +369,10 @@ boot_(Module m)
|
|||
{
|
||||
#ifdef HAVE_TGETENT
|
||||
# ifdef HAVE_SETUPTERM
|
||||
setupterm((char *)0, 1, (int *)0);
|
||||
int errret;
|
||||
if (setupterm((char *)0, 1, &errret) == ERR) {
|
||||
return 1;
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue