aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-23 03:23:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-23 03:23:28 +0000
commit91ba45ba5b3cd2ccc1457e4907cf6ed61b48ec04 (patch)
tree1e26d10ad114b7ecda1476a39935a6847f48b5db /eval.c
parentd1bf3bbd48feb89a183c012b13055eab9c4fe747 (diff)
downloadruby-91ba45ba5b3cd2ccc1457e4907cf6ed61b48ec04.tar.gz
eval_error.c: reuse threadptr
* eval_error.c (error_print, error_handle): reuse same threadptr by passing as an argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 47cfd6107c..66db86757f 100644
--- a/eval.c
+++ b/eval.c
@@ -76,7 +76,7 @@ ruby_init(void)
int state = ruby_setup();
if (state) {
if (RTEST(ruby_debug))
- error_print();
+ error_print(GET_THREAD());
exit(EXIT_FAILURE);
}
}