summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2015-11-03 22:25:19 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2015-11-03 22:25:19 +0100
commitfaa44768c016291a8670cb28981d98f80962d83d (patch)
tree72105c0c3ee4a09eca4d075d729ce64f28d6ecba
parentfd8d0562eb47f48bd5cabbb3690c56c0ebb93ce7 (diff)
downloadNetworkManager-faa44768c016291a8670cb28981d98f80962d83d.tar.gz
rdisc/tests: initialize iid passed to nm_rdisc_set_iid()
Fixes: b3e0811b811b8021dc52b32b88e13468494d9d7a
-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");