mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ruby.c (ruby_init_loadpath_safe): suppressed warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9460fd0ee0
commit
f9be12fb14
1 changed files with 4 additions and 1 deletions
5
ruby.c
5
ruby.c
|
@ -370,8 +370,11 @@ ruby_init_loadpath_safe(int safe_level)
|
||||||
VALUE fname = rb_str_new_cstr(dli.dli_fname);
|
VALUE fname = rb_str_new_cstr(dli.dli_fname);
|
||||||
sopath = rb_file_absolute_path(fname, Qnil);
|
sopath = rb_file_absolute_path(fname, Qnil);
|
||||||
rb_str_resize(fname, 0);
|
rb_str_resize(fname, 0);
|
||||||
libpath = RSTRING_PTR(sopath);
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
sopath = rb_str_new(0, 0);
|
||||||
|
}
|
||||||
|
libpath = RSTRING_PTR(sopath);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !VARIABLE_LIBPATH
|
#if !VARIABLE_LIBPATH
|
||||||
|
|
Loading…
Add table
Reference in a new issue