* 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:
nobu 2009-08-27 04:55:55 +00:00
Родитель 9460fd0ee0
Коммит f9be12fb14
1 изменённых файлов: 4 добавлений и 1 удалений

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