diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2009-11-11 16:26:19 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2009-11-11 16:26:19 +0000 |
commit | 96feec40a58d0cd1a72cad4c5ce3e5475ca3d82d (patch) | |
tree | a0278e08b063e21b19114f7c0d499a2a039d7833 /Src | |
parent | 816e6be1e0033a50c0e8eb675221a63b66e58959 (diff) | |
download | zsh-96feec40a58d0cd1a72cad4c5ce3e5475ca3d82d.tar.gz zsh-96feec40a58d0cd1a72cad4c5ce3e5475ca3d82d.tar.xz zsh-96feec40a58d0cd1a72cad4c5ce3e5475ca3d82d.zip |
users/14548: Src/Modules/termcap.c: prevent libtermcap from exiting on an
unknown terminal type
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Modules/termcap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c index 5e4cfa07f..784844169 100644 --- a/Src/Modules/termcap.c +++ b/Src/Modules/termcap.c @@ -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; |