summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-04 10:14:01 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-04 10:14:01 +0000
commit4313bec63110d061334d470c77d2394367f22702 (patch)
tree0b768f990d859f9ef8308db0d988d32893499b05 /file.c
parent3173cba26a20f927bde836d14768053611d0fb90 (diff)
merges r28833 from trunk to ruby_1_9_2.
-- * file.c (file_expand_path): wrong condition. [ruby-core:31591] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28854 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 46cf319ff7..47a2269fb1 100644
--- a/file.c
+++ b/file.c
@@ -2884,7 +2884,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
else {
/* specified drive, but not full path */
int same = 0;
- if (!NIL_P(dname) || !not_same_drive(dname, s[0])) {
+ if (!NIL_P(dname) && !not_same_drive(dname, s[0])) {
file_expand_path(dname, Qnil, abs_mode, result);
BUFINIT();
if (has_drive_letter(p) && TOLOWER(p[0]) == TOLOWER(s[0])) {