1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merges r28688 from trunk into ruby_1_9_2.

--
* 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/branches/ruby_1_9_2@28745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2010-07-24 10:38:48 +00:00
parent 0956a6f4da
commit 1069e98a8c
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -152,6 +152,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;