[cowdancer] 02/02: log.c: Silence colors termcap error
James Clarke
jrtc27-guest at moszumanska.debian.org
Mon Dec 5 00:47:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
jrtc27-guest pushed a commit to branch master
in repository cowdancer.
commit a707857058a3cd0cd5fb286b05f0b502f7fb6991
Author: James Clarke <jrtc27 at jrtc27.com>
Date: Mon Dec 5 00:42:26 2016 +0000
log.c: Silence colors termcap error
Closes: 845395
---
log.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/log.c b/log.c
index f3b0c62..7f90be5 100644
--- a/log.c
+++ b/log.c
@@ -68,9 +68,7 @@ static int term_supports_colors(void)
colors = tigetnum("colors");
- if (colors < 0)
- fprintf(stderr, "E: Error getting colors termcap: %d\n", colors);
-
+ /* colors is -1 on error, which will be treated as not supported */
return colors >= 8;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/cowdancer.git
More information about the Pbuilder-maint
mailing list