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;