X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6c42153ad9362cc676ea66563bf400d7511b3b68..745184ce4dfd76dfe3edd5289bd638e599e0892e:/uip/termsbr.c?ds=sidebyside diff --git a/uip/termsbr.c b/uip/termsbr.c index 421c3670..a1b8ebf1 100644 --- a/uip/termsbr.c +++ b/uip/termsbr.c @@ -105,10 +105,10 @@ read_termcap(void) * If possible, we let tgetent allocate its own termcap buffer */ #ifdef TGETENT_ACCEPTS_NULL - if (tgetent (NULL, term) <= 0) - return + if (tgetent (NULL, term) != TGETENT_SUCCESS) + return; #else - if (tgetent (termbuf, term) <= 0) + if (tgetent (termbuf, term) != TGETENT_SUCCESS) return; #endif