summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libtextstyle/gnulib-local/lib/term-ostream.oo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtextstyle/gnulib-local/lib/term-ostream.oo.c b/libtextstyle/gnulib-local/lib/term-ostream.oo.c
index dfd191046..38490e476 100644
--- a/libtextstyle/gnulib-local/lib/term-ostream.oo.c
+++ b/libtextstyle/gnulib-local/lib/term-ostream.oo.c
@@ -2501,7 +2501,7 @@ term_ostream_create (int fd, const char *filename, ttyctl_t tty_control)
#if HAVE_TERMINFO
int err = 1;
- if (setupterm (term, fd, &err) || err == 1)
+ if (setupterm (term, fd, &err) == 0 || err == 1)
{
/* Retrieve particular values depending on the terminal type. */
stream->max_colors = tigetnum ("colors");