mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
a3419bc919
commit
a52dd6cc5c
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jul 20 12:42:06 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* ext/socket/raddrinfo.c (rb_getaddrinfo): according to my
|
||||
valgrind output this variable should be initialized beforehand.
|
||||
|
||||
Tue Jul 20 12:50:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* io.c (io_flush_buffer): write and buffer operations should be
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue