From: Brian Vazquez Date: Wed, 27 Nov 2019 05:19:34 +0000 (-0800) Subject: tc: fix warning in tc/m_ct.c X-Git-Tag: v5.5.0~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cad1b0bc5f12be7c3b5a1a4c1b55646a0766c9a8;p=thirdparty%2Fiproute2.git 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 Fixes: c8a494314c40 ("tc: Introduce tc ct action") Signed-off-by: Brian Vazquez Signed-off-by: Stephen Hemminger --- diff --git a/tc/m_ct.c b/tc/m_ct.c index 8df2f6103..45fa4a8c9 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;