summaryrefslogtreecommitdiff
path: root/src/common/ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/ip.c')
-rw-r--r--src/common/ip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/ip.c b/src/common/ip.c
index cd73d49679d..267103efb99 100644
--- a/src/common/ip.c
+++ b/src/common/ip.c
@@ -165,14 +165,12 @@ static int
getaddrinfo_unix(const char *path, const struct addrinfo *hintsp,
struct addrinfo **result)
{
- struct addrinfo hints;
+ struct addrinfo hints = {0};
struct addrinfo *aip;
struct sockaddr_un *unp;
*result = NULL;
- MemSet(&hints, 0, sizeof(hints));
-
if (strlen(path) >= sizeof(unp->sun_path))
return EAI_FAIL;