The MTU is only needed if we are doing PMTUD but some compilers complain that it could be used uninitialized.
Reported-by: Justin Pettit <[email protected]> Signed-off-by: Jesse Gross <[email protected]> --- datapath/tunnel.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/datapath/tunnel.c b/datapath/tunnel.c index 6d0e7b9..7bf46e0 100644 --- a/datapath/tunnel.c +++ b/datapath/tunnel.c @@ -717,7 +717,7 @@ static bool check_mtu(struct sk_buff *skb, { bool pmtud = mutable->flags & TNL_F_PMTUD; __be16 frag_off = 0; - int mtu; + int mtu = 0; if (pmtud) { frag_off = htons(IP_DF); -- 1.7.1 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev_openvswitch.org
