From faa44768c016291a8670cb28981d98f80962d83d Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 3 Nov 2015 22:25:19 +0100 Subject: [PATCH] rdisc/tests: initialize iid passed to nm_rdisc_set_iid() Fixes: b3e0811b811b8021dc52b32b88e13468494d9d7a --- src/rdisc/tests/test-rdisc-fake.c | 2 +- src/rdisc/tests/test-rdisc-linux.c | 2 +- 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");