tc: Fix typo in check for colored output

The check used binary instead of boolean AND, which means colored output
was enabled only if the number of specified '-color' flags was odd.

Fixes: 2d165c0811 ("tc: implement color output")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
Phil Sutter 2018-08-15 18:21:24 +02:00 committed by David Ahern
parent 141b55f854
commit 0d0e0e0bef
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ int main(int argc, char **argv)
_SL_ = oneline ? "\\" : "\n";
if (color & !json)
if (color && !json)
enable_color();
if (batch_file)