From 2e7e5ff30b31453f83c47c1ee9621c4feb76839d Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 8 Aug 2024 00:47:18 +0500 Subject: [PATCH] ipaddr: fix maybe-uninitialized warning --- src/ipaddr/extension.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipaddr/extension.c b/src/ipaddr/extension.c index 57812164..56addcab 100644 --- a/src/ipaddr/extension.c +++ b/src/ipaddr/extension.c @@ -34,7 +34,7 @@ static struct ipaddress* parse_ipaddress(const char* address) { struct ipaddress* ip = NULL; unsigned char buf[sizeof(struct in6_addr)]; char* sep = strchr(address, '/'); - unsigned long masklen; + unsigned long masklen = 0; if (sep) { char* end; errno = 0;