aboutsummaryrefslogtreecommitdiff
path: root/src/common/cerr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/cerr.c')
-rw-r--r--src/common/cerr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/cerr.c b/src/common/cerr.c
index 98bca0f..a9df061 100644
--- a/src/common/cerr.c
+++ b/src/common/cerr.c
@@ -34,7 +34,7 @@ cerrinit(const char *s)
const char *p = strrchr(s, '/');
progname = p ? p + 1 : s;
- if (isatty(STDOUT_FILENO)) {
+ if (isatty(STDERR_FILENO)) {
const char *ev = getenv("NO_COLOR");
color = !ev || !*ev;
}