diff options
| author | Clint Adams <clint@users.sourceforge.net> | 2003-09-14 05:10:05 +0000 |
|---|---|---|
| committer | Clint Adams <clint@users.sourceforge.net> | 2003-09-14 05:10:05 +0000 |
| commit | cd89b92a0de7c2ef66c8aeec260377a1643a18d7 (patch) | |
| tree | 04fa2484f7c6400dc8b03be8cdde9b2f244a402f /Src/Modules/terminfo.c | |
| parent | 19059: add -v, -V and -p flags required by POSIX to the command builtin (diff) | |
| download | zsh-cd89b92a0de7c2ef66c8aeec260377a1643a18d7.tar zsh-cd89b92a0de7c2ef66c8aeec260377a1643a18d7.tar.gz zsh-cd89b92a0de7c2ef66c8aeec260377a1643a18d7.tar.bz2 zsh-cd89b92a0de7c2ef66c8aeec260377a1643a18d7.tar.lz zsh-cd89b92a0de7c2ef66c8aeec260377a1643a18d7.tar.xz zsh-cd89b92a0de7c2ef66c8aeec260377a1643a18d7.tar.zst zsh-cd89b92a0de7c2ef66c8aeec260377a1643a18d7.zip | |
19076: don't call setupterm with NULL as last argument as that causes
the shell to exit when the terminal is unknown.
Diffstat (limited to 'Src/Modules/terminfo.c')
| -rw-r--r-- | Src/Modules/terminfo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c index b128e0bb5..f869e0e36 100644 --- a/Src/Modules/terminfo.c +++ b/Src/Modules/terminfo.c @@ -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()) |
