Fix build warning: 'flags_mask' may be used uninitialized. Signed-off-by: Antonio Fischetti <antonio.fische...@intel.com> --- lib/odp-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/odp-util.c b/lib/odp-util.c index b4689cc..10fb6c2 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -2366,7 +2366,7 @@ format_odp_tun_vxlan_opt(const struct nlattr *attr, case OVS_VXLAN_EXT_GBP: { uint32_t key = nl_attr_get_u32(a); ovs_be16 id, id_mask; - uint8_t flags, flags_mask; + uint8_t flags, flags_mask = 0; id = htons(key & 0xFFFF); flags = (key >> 16) & 0xFF; -- 2.4.11 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev