X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnetutl.c;fp=src%2Fnetutl.c;h=abe3d876535319e20dc4a10665b8fe000b114ce5;hp=3c2a77dfebfdbd6a41ef7c37e63679e06eed71ef;hb=99763e34d52fcfe76b0bb9c7f3a17ace51cfdbfc;hpb=d2f8d0920226e4d8edd3efa3c18b46b783aacea0 diff --git a/src/netutl.c b/src/netutl.c index 3c2a77df..abe3d876 100644 --- a/src/netutl.c +++ b/src/netutl.c @@ -33,7 +33,7 @@ bool hostnames = false; Return NULL on failure. */ struct addrinfo *str2addrinfo(const char *address, const char *service, int socktype) { - struct addrinfo *ai = NULL, hint = {}; + struct addrinfo *ai = NULL, hint = {0}; int err; hint.ai_family = addressfamily; @@ -55,7 +55,7 @@ struct addrinfo *str2addrinfo(const char *address, const char *service, int sock } sockaddr_t str2sockaddr(const char *address, const char *port) { - struct addrinfo *ai = NULL, hint = {}; + struct addrinfo *ai = NULL, hint = {0}; sockaddr_t result; int err;