Initialize rte_fib6_conf with { 0 } to avoid using uninitialized
fields, aligned with how it is already done in test_fib.c.

This is needed because the struct will gain new optional fields
(tbl8_pool) that must default to NULL.

Signed-off-by: Maxime Leroy <[email protected]>
---
 app/test/test_fib6.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/app/test/test_fib6.c b/app/test/test_fib6.c
index fffb590dbf..9fbdde6b05 100644
--- a/app/test/test_fib6.c
+++ b/app/test/test_fib6.c
@@ -38,7 +38,7 @@ int32_t
 test_create_invalid(void)
 {
        struct rte_fib6 *fib = NULL;
-       struct rte_fib6_conf config;
+       struct rte_fib6_conf config = { 0 };
 
        config.max_routes = MAX_ROUTES;
        config.rib_ext_sz = 0;
@@ -97,7 +97,7 @@ int32_t
 test_multiple_create(void)
 {
        struct rte_fib6 *fib = NULL;
-       struct rte_fib6_conf config;
+       struct rte_fib6_conf config = { 0 };
        int32_t i;
 
        config.rib_ext_sz = 0;
@@ -124,7 +124,7 @@ int32_t
 test_free_null(void)
 {
        struct rte_fib6 *fib = NULL;
-       struct rte_fib6_conf config;
+       struct rte_fib6_conf config = { 0 };
 
        config.max_routes = MAX_ROUTES;
        config.rib_ext_sz = 0;
@@ -148,7 +148,7 @@ int32_t
 test_add_del_invalid(void)
 {
        struct rte_fib6 *fib = NULL;
-       struct rte_fib6_conf config;
+       struct rte_fib6_conf config = { 0 };
        uint64_t nh = 100;
        struct rte_ipv6_addr ip = RTE_IPV6_ADDR_UNSPEC;
        int ret;
@@ -342,7 +342,7 @@ int32_t
 test_lookup(void)
 {
        struct rte_fib6 *fib = NULL;
-       struct rte_fib6_conf config;
+       struct rte_fib6_conf config = { 0 };
        uint64_t def_nh = 100;
        int ret;
 
-- 
2.43.0

Reply via email to