X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d036480eb208e821aba1485ec77da7f06bdf13a8..a139e1ddbbe5e7fe89d7eb4a5dc16d4b9698960a:/uip/termsbr.c diff --git a/uip/termsbr.c b/uip/termsbr.c index 556158d1..a1b8ebf1 100644 --- a/uip/termsbr.c +++ b/uip/termsbr.c @@ -3,6 +3,10 @@ * termsbr.c -- termcap support * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include @@ -101,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