summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-22 14:05:06 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-22 14:05:06 +0000
commit544934d8e7655e7b038de90011409ccb2d5bdb19 (patch)
tree3724c1106ebd641c7b0178b7a42393fddcdbf114 /file.c
parent9ad091a8975f782934e6a669117ba263a9900a7d (diff)
merges r22393 from trunk into ruby_1_9_1.
* file.c (rb_file_s_extname): fix for spaces before extention. [ruby-dev:38044] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@22548 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 e4261293c..e46d25d12 100644
--- a/file.c
+++ b/file.c
@@ -3162,7 +3162,7 @@ rb_file_s_extname(VALUE klass, VALUE fname)
p = last;
break;
}
- if (*last == '.') e = dot;
+ if (*last == '.' || dot > last) e = dot;
continue;
#else
e = p; /* get the last dot of the last component */