From e9a1ba232ac7b8f0ec9a7044039986f03505ed70 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 13 Jun 2012 11:20:33 +0000 Subject: * process.c (rb_fork_internal): move a variable declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'process.c') diff --git a/process.c b/process.c index dce3258d97..f5860422af 100644 --- a/process.c +++ b/process.c @@ -3102,13 +3102,13 @@ rb_fork_internal(int *status, int (*chfunc)(void*, char *, size_t), void *charg, if (pid < 0) return pid; if (!pid) { - struct chfunc_protect_t arg; int ret; forked_child = 1; close(ep[0]); if (chfunc_is_async_signal_safe) ret = chfunc(charg, errmsg, errmsg_buflen); else { + struct chfunc_protect_t arg; arg.chfunc = chfunc; arg.arg = charg; arg.errmsg = errmsg; -- cgit v1.2.3