summaryrefslogtreecommitdiff
path: root/ext/socket/raddrinfo.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-20 04:00:46 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-20 04:00:46 +0000
commita52dd6cc5c011fbebc3e00261eaade73ec981bf8 (patch)
treea90ea145c510da3d1c9d210f07d6ea4d306b91e3 /ext/socket/raddrinfo.c
parenta3419bc919b49d2c4a6efe04b375e7700f43e4b8 (diff)
* ext/socket/raddrinfo.c (rb_getaddrinfo): according to my valgrind output this variable should be initialized beforehand.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/raddrinfo.c')
-rw-r--r--ext/socket/raddrinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
index 2e5f95a..c386bb9 100644
--- a/ext/socket/raddrinfo.c
+++ b/ext/socket/raddrinfo.c
@@ -172,6 +172,7 @@ rb_getaddrinfo(const char *node, const char *service,
#else
struct getaddrinfo_arg arg;
int ret;
+ MEMZERO(&arg, sizeof arg, 1);
arg.node = node;
arg.service = service;
arg.hints = hints;