summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-10 09:47:31 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-10 09:47:31 +0000
commit63a3507c60ef6eda3b143e26dbf68f640e1deea7 (patch)
tree3111cc9fef2642e263a95261af6ec9e8f2e88874 /file.c
parentcbdcd886863d456ccc3c055c5c118fbc9a61d917 (diff)
merge revision(s) 17916:
* file.c (rb_file_s_extname): fix for file name with spaces. [ruby-talk:307404] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@18006 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 ba490c0894..ca80795817 100644
--- a/file.c
+++ b/file.c
@@ -3044,7 +3044,7 @@ rb_file_s_extname(klass, fname)
p = last;
break;
}
- e = dot;
+ if (*last == '.') e = dot;
continue;
#else
e = p; /* get the last dot of the last component */