diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | file.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu Jan 9 17:30:55 2003 WATANABE Hirofumi <[email protected]> + + * file.c (rb_find_file_ext): sync with Ruby 1.8. ([ruby-talk:56407]) + Thu Jan 09 17:05:14 2003 Nobuyoshi Nakada <[email protected]> * configure.in (RUBY_CHECK_IO_NEED): check whether fseek() and @@ -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); |