summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
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);
}
}