summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-07 03:26:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-07 03:26:30 +0000
commit72de92d1f9f7ad5861f151f972db085cdf3e0edb (patch)
treebba75ce2e5907ca0c425d1e2421cbbc9d2b65a50 /error.c
parent293249fba4c149e690c28c1ee41f9056173682a6 (diff)
rb_load_fail
* error.c (rb_load_fail): use path as a string, not char*. * internal.h: (rb_load_fail): moved from ruby/intern.h. * ruby.c (load_file_internal): fname cannot be NULL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/error.c b/error.c
index e0c6a44b2f..b8f9f06654 100644
--- a/error.c
+++ b/error.c
@@ -1908,9 +1908,9 @@ rb_sys_warning(const char *fmt, ...)
}
void
-rb_load_fail(const char *path)
+rb_load_fail(VALUE path)
{
- rb_loaderror_with_path(rb_str_new2(path), "%s -- %s", strerror(errno), path);
+ rb_loaderror_with_path(path, "%s -- %s", strerror(errno), RSTRING_PTR(path));
}
void