summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-09 08:32:26 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-09 08:32:26 +0000
commitd09ce0fb3883dcd519d7751837acedbb5fb024d4 (patch)
treefd9300b70eecc83605b9f2be8c32748e7c1fb100 /file.c
parent722adecb04c0bee880cac2c669e6caef8abfc681 (diff)
* 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
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
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);