1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

users/14548: Src/Modules/termcap.c: prevent libtermcap from exiting on an

unknown terminal type
This commit is contained in:
Bart Schaefer 2009-11-11 16:26:19 +00:00
parent 816e6be1e0
commit 96feec40a5

View file

@ -369,7 +369,10 @@ boot_(Module m)
{ {
#ifdef HAVE_TGETENT #ifdef HAVE_TGETENT
# ifdef HAVE_SETUPTERM # ifdef HAVE_SETUPTERM
setupterm((char *)0, 1, (int *)0); int errret;
if (setupterm((char *)0, 1, &errret) == ERR) {
return 1;
}
# endif # endif
#endif #endif
return 0; return 0;