summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-26 06:09:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-26 06:09:11 +0000
commit1db0393eb132ff6ecb85747d4a440072755959f8 (patch)
treea4c8f02c363a1a0c8faee609639b27dc7d6aa818 /process.c
parent859f3d14eda5ecd59ed7a7172dc63cdfa2acba92 (diff)
uninitialized variable
* process.c (rb_spawn_process): get rid of usage of uninitialized variable. reported by Denis Denisov <denji0k AT gmail.com>. * regexec.c (match_at): ditto. * ext/win32ole/win32ole.c (ole_wc2mb_alloc, ole_vstr2wc, ole_mb2wc): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/process.c b/process.c
index 25cdc16..2a5ed99 100644
--- a/process.c
+++ b/process.c
@@ -3910,6 +3910,7 @@ rb_spawn_process(struct rb_execarg *eargp, char *errmsg, size_t errmsg_buflen)
}
status = system(StringValuePtr(prog));
rb_last_status_set((status & 0xff) << 8, 0);
+ pid = 1; /* dummy */
# endif
rb_execarg_run_options(&sarg, NULL, errmsg, errmsg_buflen);