mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ruby.c (require_libraries): req_list may be NULL. [ruby-dev:35008]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e39b93b86e
commit
66054b9e3d
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Jun 9 15:37:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ruby.c (require_libraries): req_list may be NULL. [ruby-dev:35008]
|
||||
|
||||
Mon Jun 9 14:18:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_core.h (struct rb_vm_struct): moved src_encoding_index,
|
||||
|
|
2
ruby.c
2
ruby.c
|
@ -455,7 +455,7 @@ require_libraries(struct cmdline_options *opt)
|
|||
ID require = rb_intern("require");
|
||||
|
||||
Init_ext(); /* should be called here for some reason :-( */
|
||||
while (RARRAY_LEN(list)) {
|
||||
while (list && RARRAY_LEN(list) > 0) {
|
||||
VALUE feature = rb_ary_shift(list);
|
||||
rb_funcall2(rb_vm_top_self(), require, 1, &feature);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue