From d09ce0fb3883dcd519d7751837acedbb5fb024d4 Mon Sep 17 00:00:00 2001 From: eban Date: Thu, 9 Jan 2003 08:32:26 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ file.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 20975e0b0c..6ed23b7760 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jan 9 17:30:55 2003 WATANABE Hirofumi + + * file.c (rb_find_file_ext): sync with Ruby 1.8. ([ruby-talk:56407]) + Thu Jan 09 17:05:14 2003 Nobuyoshi Nakada * configure.in (RUBY_CHECK_IO_NEED): check whether fseek() and diff --git a/file.c b/file.c index aba5a7b8ad..7532986078 100644 --- a/file.c +++ b/file.c @@ -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);