X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Ftermsbr.c;h=a1b8ebf102b9f7fac71d21d92c1ad3856f329f8d;hb=d852091446f41b56c10a4163c9d00dd90eb2bc1b;hp=421c367014983a22ec17d039fa5a52807d30ca84;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68;p=mmh diff --git a/uip/termsbr.c b/uip/termsbr.c index 421c367..a1b8ebf 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