summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-15 04:11:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-15 04:11:34 +0000
commit52f81e0ce7cc58e438e31159453cfb80ec35f5b0 (patch)
tree2d658d206c9a8f86a2bb7ce62d5ca2d08c566c95 /dir.c
parent12b5b81a975e2190aebe762b10ceadccd439a45a (diff)
commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index e1764c7582..857244180b 100644
--- a/dir.c
+++ b/dir.c
@@ -508,7 +508,7 @@ check_dirname(dir)
SafeStringValue(*dir);
rb_secure(2);
path = RSTRING(*dir)->ptr;
- if (*(path && pend = rb_path_end(rb_path_skip_prefix(path)))) {
+ if (path && *(pend = rb_path_end(rb_path_skip_prefix(path)))) {
*dir = rb_str_new(path, pend - path);
}
}