diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-04-01 09:14:11 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-04-01 09:14:11 -0400 |
| commit | 515f5f4d7e902da180562290fe00fa5a2dac27f6 (patch) | |
| tree | bbc58e7321d291d301fd7b0e572127619293aa60 /tests/lib/test_frrlua.c | |
| parent | 896c1174fccd29ff7519c43b511d8cdee4f0ea65 (diff) | |
tests: Fix uninitialized usage of variables in tests
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/lib/test_frrlua.c')
| -rw-r--r-- | tests/lib/test_frrlua.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/test_frrlua.c b/tests/lib/test_frrlua.c index a81446f9ca..fb6b77c0f8 100644 --- a/tests/lib/test_frrlua.c +++ b/tests/lib/test_frrlua.c @@ -61,7 +61,7 @@ static void test_encode_decode(void) assert(strncmp(p_a_str, p_b_str, sizeof(p_b_str)) == 0); assert(lua_gettop(L) == 0); - struct interface ifp_a; + struct interface ifp_a = {}; struct interface ifp_b = ifp_a; lua_pushinterface(L, &ifp_a); @@ -79,7 +79,7 @@ static void test_encode_decode(void) assert(ifp_a.ll_type == ifp_b.ll_type); assert(lua_gettop(L) == 0); - struct in_addr addr_a; + struct in_addr addr_a = {}; struct in_addr addr_b = addr_a; lua_pushinaddr(L, &addr_a); @@ -87,7 +87,7 @@ static void test_encode_decode(void) assert(addr_a.s_addr == addr_b.s_addr); assert(lua_gettop(L) == 0); - struct in6_addr in6addr_a; + struct in6_addr in6addr_a = {}; struct in6_addr in6addr_b = in6addr_a; lua_pushin6addr(L, &in6addr_a); |
