]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bridge: Fix check for colored output
authorPhil Sutter <phil@nwl.cc>
Wed, 15 Aug 2018 16:21:25 +0000 (18:21 +0200)
committerDavid Ahern <dsahern@gmail.com>
Wed, 15 Aug 2018 16:54:51 +0000 (09:54 -0700)
commit5332148debeadcf52cc157ef1dd0a377dd482517
tree890ae5812634f7754bbe2ab783fe4cd6c6d28664
parent0d0e0e0bef68f888bedb8d8f343baa943207dafc
bridge: Fix check for colored output

There is no point in calling enable_color() conditionally if it was
already called for each time '-color' flag was parsed. Align the
algorithm with that in ip and tc by actually making use of 'color'
variable.

Fixes: e9625d6aead11 ("Merge branch 'iproute2-master' into iproute2-next")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David Ahern <dsahern@gmail.com>
bridge/bridge.c