summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-19 05:03:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-19 05:03:30 +0000
commit1031c207140cd3d3a02305539f128f044e2e006b (patch)
tree4027605922fe0f0c9a7659d7d9b6d036b5d1dc27 /eval.c
parentd1b83a59efaea9d66be7bb78e5f413305c811177 (diff)
* configure.in (DEPRECATED): backported from trunk.
* eval.c (rb_mod_autoload): should use SafeStringValue() instead obsolete Check_SafeStr(). * ruby.h (rb_check_safe_str, rb_str2cstr): deprecation warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24202 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 65c1dfd36a..ab8356b3f2 100644
--- a/eval.c
+++ b/eval.c
@@ -8388,7 +8388,7 @@ rb_mod_autoload(mod, sym, file)
{
ID id = rb_to_id(sym);
- Check_SafeStr(file);
+ SafeStringValue(file);
rb_autoload(mod, id, RSTRING(file)->ptr);
return Qnil;
}