* 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
@ -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>
|
Tue Jul 20 12:50:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (io_flush_buffer): write and buffer operations should be
|
* io.c (io_flush_buffer): write and buffer operations should be
|
||||||
|
@ -172,6 +172,7 @@ rb_getaddrinfo(const char *node, const char *service,
|
|||||||
#else
|
#else
|
||||||
struct getaddrinfo_arg arg;
|
struct getaddrinfo_arg arg;
|
||||||
int ret;
|
int ret;
|
||||||
|
MEMZERO(&arg, sizeof arg, 1);
|
||||||
arg.node = node;
|
arg.node = node;
|
||||||
arg.service = service;
|
arg.service = service;
|
||||||
arg.hints = hints;
|
arg.hints = hints;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user