[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191127051934.158900-1-brianvv@google.com>
Date: Tue, 26 Nov 2019 21:19:34 -0800
From: Brian Vazquez <brianvv@...gle.com>
To: Brian Vazquez <brianvv.kernel@...il.com>,
David Ahern <dsahern@...il.com>,
Stephen Hemminger <stephen@...workplumber.org>
Cc: Mahesh Bandewar <maheshb@...gle.com>,
Maciej Zenczykowski <maze@...gle.com>, netdev@...r.kernel.org,
Brian Vazquez <brianvv@...gle.com>,
Paul Blakey <paulb@...lanox.com>
Subject: [PATCH iproute2] tc: fix warning in tc/m_ct.c
Warning was:
m_ct.c:370:13: warning: variable 'nat' is used uninitialized whenever
'if' condition is false
Cc: Paul Blakey <paulb@...lanox.com>
Fixes: c8a494314c40 ("tc: Introduce tc ct action")
Signed-off-by: Brian Vazquez <brianvv@...gle.com>
---
tc/m_ct.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tc/m_ct.c b/tc/m_ct.c
index 8df2f610..45fa4a8c 100644
--- a/tc/m_ct.c
+++ b/tc/m_ct.c
@@ -359,7 +359,7 @@ static void ct_print_nat(int ct_action, struct rtattr **tb)
{
size_t done = 0;
char out[256] = "";
- bool nat;
+ bool nat = false;
if (!(ct_action & TCA_CT_ACT_NAT))
return;
--
2.24.0.432.g9d3f5f5b63-goog
Powered by blists - more mailing lists