diff --git a/src/tools/pw-dump.c b/src/tools/pw-dump.c index 5f50e094d..c0ac81523 100644 --- a/src/tools/pw-dump.c +++ b/src/tools/pw-dump.c @@ -1429,7 +1429,7 @@ int main(int argc, char *argv[]) pw_init(&argc, &argv); data.out = stdout; - if (isatty(fileno(data.out) && getenv("NO_COLOR") == NULL)) + if (isatty(fileno(data.out)) && getenv("NO_COLOR") == NULL) colors = true; while ((c = getopt_long(argc, argv, "hVr:mN", long_options, NULL)) != -1) {