Skip to content

Commit

Permalink
ipaddr: fix maybe-uninitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Aug 7, 2024
1 parent 999336f commit 2e7e5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipaddr/extension.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2e7e5ff

Please sign in to comment.