summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/raddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
index b562273..ba87e24 100644
--- a/ext/socket/raddrinfo.c
+++ b/ext/socket/raddrinfo.c
@@ -270,7 +270,7 @@ rb_getaddrinfo(const char *node, const char *service,
ret = getaddrinfo(node, service, hints, &ai);
#else
struct getaddrinfo_arg arg;
- MEMZERO(&arg, sizeof arg, 1);
+ MEMZERO(&arg, struct getaddrinfo_arg, 1);
arg.node = node;
arg.service = service;
arg.hints = hints;