diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-07 03:26:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-07 03:26:30 +0000 |
commit | 72de92d1f9f7ad5861f151f972db085cdf3e0edb (patch) | |
tree | bba75ce2e5907ca0c425d1e2421cbbc9d2b65a50 /error.c | |
parent | 293249fba4c149e690c28c1ee41f9056173682a6 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |