From 88dddd759e5d6971217f5dec15a89ebda033acf4 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 23 Dec 2008 06:30:33 +0000 Subject: * io.c (pipe_open): need to initialize args. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ io.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 967145856..66ebc3ae2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Dec 23 15:30:02 2008 NAKAMURA Usaku + + * io.c (pipe_open): need to initialize args. + Tue Dec 23 14:18:14 2008 NAKAMURA Usaku * include/ruby/st.h: need to include defines.h because LONG_LONG is diff --git a/io.c b/io.c index da1e5c140..632e3500c 100644 --- a/io.c +++ b/io.c @@ -4448,7 +4448,7 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode, struct popen_arg arg; #elif defined(_WIN32) volatile VALUE argbuf; - char **args; + char **args = NULL; struct rb_exec_arg sarg; int pair[2], write_pair[2]; #endif -- cgit