summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-13 09:01:58 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-13 09:01:58 +0000
commit52f90f65668e479cd712e2e3bbd0dc80925816fe (patch)
tree2923343175f8d63a52649189131c6e642b4574dd /file.c
parent12d1bc6bd53eabee9442c79d41b698b0bf3ac7d8 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1002 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 abbae82e44..3e0ff4c8fa 100644
--- a/file.c
+++ b/file.c
@@ -1260,7 +1260,7 @@ rb_file_s_expand_path(argc, argv)
}
#endif
else if (!isdirsep(*s)) {
- if (argc == 2) {
+ if (!NIL_P(dname)) {
dname = rb_file_s_expand_path(1, &dname);
if (OBJ_TAINTED(dname)) tainted = 1;
strcpy(buf, RSTRING(dname)->ptr);