summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-25 05:55:12 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-25 05:55:12 +0000
commitbbd798caa2e148e0ebd10b6a6f9aeaf1301a54d0 (patch)
tree071d640b5afb70e2d3cd24f69342479768cdfd5f /file.c
parentde8e3c8ec3610a55b5d5ebbfa226cddf524d39ec (diff)
downloadruby-bbd798caa2e148e0ebd10b6a6f9aeaf1301a54d0.tar.gz
ruby-bbd798caa2e148e0ebd10b6a6f9aeaf1301a54d0.tar.xz
ruby-bbd798caa2e148e0ebd10b6a6f9aeaf1301a54d0.zip
2000-05-25
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@715 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 3e0a19d37..c6a0544cd 100644
--- a/file.c
+++ b/file.c
@@ -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;