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
This commit is contained in:
nobu 2016-04-23 03:23:28 +00:00
parent f56a2c7293
commit 53d5f865e6
2 changed files with 6 additions and 7 deletions

2
eval.c
View file

@ -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);
}
}