summaryrefslogtreecommitdiffstats
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 a7f9c064f..f7a1af9f5 100644
--- a/file.c
+++ b/file.c
@@ -3123,7 +3123,7 @@ rb_file_s_extname(VALUE klass, VALUE fname)
p = last;
break;
}
- e = dot;
+ if (*last == '.') e = dot;
continue;
#else
e = p; /* get the last dot of the last component */