From bc301ac722153e57be6ee59bb4db29813e457990 Mon Sep 17 00:00:00 2001 From: xnumad <34810600+xnumad@users.noreply.github.com> Date: Tue, 27 Feb 2024 21:09:14 +0100 Subject: [PATCH] fixup! RFC7217 for NETOPT_IPV6_IID `-Werror=maybe-uninitialized` --- sys/net/gnrc/netif/gnrc_netif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/netif/gnrc_netif.c b/sys/net/gnrc/netif/gnrc_netif.c index cf779eddbad3..3ed246873935 100644 --- a/sys/net/gnrc/netif/gnrc_netif.c +++ b/sys/net/gnrc/netif/gnrc_netif.c @@ -1345,7 +1345,7 @@ int gnrc_netif_ipv6_add_prefix(gnrc_netif_t *netif, DEBUG("gnrc_netif: (re-)configure prefix %s/%d\n", ipv6_addr_to_str(addr_str, pfx, sizeof(addr_str)), pfx_len); #if IS_ACTIVE(CONFIG_GNRC_IPV6_STABLE_PRIVACY) - uint8_t dad_ctr; + uint8_t dad_ctr = 0; netopt_ipv6_rfc7217_iid_data data; data.iid = &iid; data.pfx = pfx;