diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-25 05:55:12 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-25 05:55:12 +0000 |
commit | d7fe17edf08c1cee7f5b87251d2f09345900fcf9 (patch) | |
tree | 071d640b5afb70e2d3cd24f69342479768cdfd5f /file.c | |
parent | 106eb09a382fa9003b67a29e33598ef4205b83b9 (diff) |
2000-05-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2093,7 +2093,7 @@ rb_find_file(file) } path = dln_find_file(file, path); - if (stat(path, &st) == 0) { + if (path && stat(path, &st) == 0) { return path; } return 0; |