aboutsummaryrefslogtreecommitdiffstats
path: root/load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-03 08:13:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-03 08:13:26 +0000
commitaacc35e144f2a3d5c145f85e337accd55a8acc90 (patch)
tree11c7af24794357a7a0fdfac687fe187067cf13d9 /load.c
parent638ba47303dbc54ea84147cbb21935b251f670da (diff)
downloadruby-aacc35e144f2a3d5c145f85e337accd55a8acc90.tar.gz
encoding.c: load by rb_require_internal
* encoding.c (load_encoding): use rb_require_internal instead of calling rb_require_safe with protection. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r--load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/load.c b/load.c
index 5036d8bf24..4f1a0c1a78 100644
--- a/load.c
+++ b/load.c
@@ -947,7 +947,7 @@ load_ext(VALUE path)
* <0: not found (LoadError)
* >1: exception
*/
-static int
+int
rb_require_internal(VALUE fname, int safe)
{
volatile int result = -1;