diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2002-05-06 14:50:10 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2002-05-06 14:50:10 +0000 |
commit | d3454531d454c322493faa24195b102ac7522988 (patch) | |
tree | 62e497248e7acc4d6041969181d2234b8bfdb6bd /Src | |
parent | cefd2de2e181eb4844ccec575322e410e75a1afd (diff) | |
download | zsh-d3454531d454c322493faa24195b102ac7522988.tar.gz zsh-d3454531d454c322493faa24195b102ac7522988.tar.xz zsh-d3454531d454c322493faa24195b102ac7522988.zip |
Detect variant tgetent() return value and test for it correctly.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/init.c b/Src/init.c index f343f3025..1a5728870 100644 --- a/Src/init.c +++ b/Src/init.c @@ -535,11 +535,11 @@ init_term(void) #ifdef TGETENT_ACCEPTS_NULL /* If possible, we let tgetent allocate its own termcap buffer */ - if (tgetent(NULL, term) != 1) { + if (tgetent(NULL, term) != TGETENT_SUCCESS) #else - if (tgetent(termbuf, term) != 1) { + if (tgetent(termbuf, term) != TGETENT_SUCCESS) #endif - + { if (isset(INTERACTIVE)) zerr("can't find terminal definition for %s", term, 0); errflag = 0; |