summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-23 07:29:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-23 07:29:15 +0000
commit2d9c37a895c11d921eb1527559059727895d9fc1 (patch)
tree2e794f4c364fc1cdbd239eb571ef397a13206827 /win32
parent894f6ba7f1237965ae02719140c8710e56b83784 (diff)
win32.c: missing initialization
* win32/win32.c (rb_w32_spawn, rb_w32_aspawn_flags): fix missing initialization. pointed out by phasis68 (Heesob Park) at [ruby-core:51579]. [Bug #7721] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 8b577eaf84..984e03b0dd 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1184,7 +1184,7 @@ rb_w32_spawn(int mode, const char *cmd, const char *prog)
const char *shell = NULL;
WCHAR *wcmd = NULL, *wshell = NULL;
int e = 0;
- rb_pid_t ret;
+ rb_pid_t ret = -1;
VALUE v = 0;
VALUE v2 = 0;
@@ -1293,7 +1293,7 @@ rb_w32_aspawn_flags(int mode, const char *prog, char *const *argv, DWORD flags)
char *cmd, fbuf[MAXPATHLEN];
WCHAR *wcmd = NULL, *wprog = NULL;
int e = 0;
- rb_pid_t ret;
+ rb_pid_t ret = -1;
VALUE v = 0;
if (check_spawn_mode(mode)) return -1;