summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-30 07:06:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-30 07:06:51 +0000
commit47fd9eb6e16ca14ee9415e4e2734c28ce5eeca36 (patch)
tree5b37d2cf9a55cccc4ce3b19ef33d557542e994af /file.c
parenta55567a066b1cf8851da606a1dafbe38f4cec520 (diff)
* file.c (file_expand_path): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index 46d75498dc..f49b46dcbb 100644
--- a/file.c
+++ b/file.c
@@ -2855,6 +2855,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
tainted = 1;
if (isdirsep(s[1]) || s[1] == '\0') {
buf = 0;
+ b = 0;
rb_str_set_len(result, 0);
if (*++s) ++s;
}