From d7fe17edf08c1cee7f5b87251d2f09345900fcf9 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 25 May 2000 05:55:12 +0000 Subject: 2000-05-25 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 3e0a19d37b..c6a0544cd9 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; -- cgit v1.2.3