1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* file.c (rb_find_file_ext): sync with Ruby 1.8. ([ruby-talk:56407])

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2003-01-09 08:32:26 +00:00
parent 722adecb04
commit d09ce0fb38
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Jan 9 17:30:55 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* file.c (rb_find_file_ext): sync with Ruby 1.8. ([ruby-talk:56407])
Thu Jan 09 17:05:14 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* configure.in (RUBY_CHECK_IO_NEED): check whether fseek() and

2
file.c
View file

@ -2198,7 +2198,7 @@ rb_find_file_ext(filep, ext)
VALUE str = RARRAY(rb_load_path)->ptr[i];
Check_SafeStr(str);
if (RSTRING(str)->len == 0) return 0;
if (RSTRING(str)->len == 0) continue;
path = RSTRING(str)->ptr;
for (j=0; ext[j]; j++) {
fname = rb_str_dup(*filep);