The FIB6 configuration is filled field by field, which leaves any
field added to struct rte_fib6_conf uninitialized.
Zero-initialize it.

Signed-off-by: Maxime Leroy <[email protected]>
---
 examples/l3fwd/l3fwd_fib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/l3fwd/l3fwd_fib.c b/examples/l3fwd/l3fwd_fib.c
index 32c8847130..38f947f970 100644
--- a/examples/l3fwd/l3fwd_fib.c
+++ b/examples/l3fwd/l3fwd_fib.c
@@ -640,7 +640,7 @@ void
 setup_fib(const int socketid)
 {
        struct rte_eth_dev_info dev_info;
-       struct rte_fib6_conf config;
+       struct rte_fib6_conf config = { 0 };
        struct rte_fib_conf config_ipv4 = { 0 };
        int i;
        int ret;
-- 
2.43.0

Reply via email to