summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rdisc/tests/test-rdisc-fake.c2
-rw-r--r--src/rdisc/tests/test-rdisc-linux.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rdisc/tests/test-rdisc-fake.c b/src/rdisc/tests/test-rdisc-fake.c
index 6ba8d27133..ad045cff01 100644
--- a/src/rdisc/tests/test-rdisc-fake.c
+++ b/src/rdisc/tests/test-rdisc-fake.c
@@ -37,7 +37,7 @@ rdisc_new (void)
NMRDisc *rdisc;
const int ifindex = 1;
const char *ifname = nm_platform_link_get_name (NM_PLATFORM_GET, ifindex);
- NMUtilsIPv6IfaceId iid;
+ NMUtilsIPv6IfaceId iid = { };
rdisc = nm_fake_rdisc_new (ifindex, ifname);
iid.id_u8[7] = 1;
diff --git a/src/rdisc/tests/test-rdisc-linux.c b/src/rdisc/tests/test-rdisc-linux.c
index a5b68494dd..83de912159 100644
--- a/src/rdisc/tests/test-rdisc-linux.c
+++ b/src/rdisc/tests/test-rdisc-linux.c
@@ -40,7 +40,7 @@ main (int argc, char **argv)
NMRDisc *rdisc;
int ifindex = 1;
const char *ifname;
- NMUtilsIPv6IfaceId iid;
+ NMUtilsIPv6IfaceId iid = { };
nmtst_init_with_logging (&argc, &argv, NULL, "DEFAULT");