diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-21 16:04:50 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-21 16:04:50 +0000 |
commit | fedc3a4b5ff9f8f0dfc8fb3227e300cbe35a3a7e (patch) | |
tree | 24cc5a280367872f1226c14dfe748ad4df516210 /ext/socket/raddrinfo.c | |
parent | 139d06c34f4d51147a5d7707e738878b1fda65bf (diff) | |
download | ruby-fedc3a4b5ff9f8f0dfc8fb3227e300cbe35a3a7e.tar.gz |
fix second argument of MEMZERO
* ext/socket/raddrinfo.c (rb_getaddrinfo): second argument of
MEMZERO is type. Coverity Scan found this bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/raddrinfo.c')
-rw-r--r-- | ext/socket/raddrinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c index b5622738f3..ba87e24621 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; |