summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
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 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;