diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-27 04:55:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-27 04:55:55 +0000 |
commit | f9be12fb14e57794d2edb53a141b00be47c7f010 (patch) | |
tree | 52ec9a958d80cdead6c9f608a749d6e8767c3202 /ruby.c | |
parent | 9460fd0ee0d7b8eae7861406b592a0f0977d0e15 (diff) | |
download | ruby-f9be12fb14e57794d2edb53a141b00be47c7f010.tar.gz |
* 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
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -370,8 +370,11 @@ ruby_init_loadpath_safe(int safe_level) VALUE fname = rb_str_new_cstr(dli.dli_fname); sopath = rb_file_absolute_path(fname, Qnil); rb_str_resize(fname, 0); - libpath = RSTRING_PTR(sopath); } + else { + sopath = rb_str_new(0, 0); + } + libpath = RSTRING_PTR(sopath); #endif #if !VARIABLE_LIBPATH |