1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2010-07-30 07:06:51 +00:00
parent a55567a066
commit 47fd9eb6e1

1
file.c
View file

@ -2855,6 +2855,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
tainted = 1; tainted = 1;
if (isdirsep(s[1]) || s[1] == '\0') { if (isdirsep(s[1]) || s[1] == '\0') {
buf = 0; buf = 0;
b = 0;
rb_str_set_len(result, 0); rb_str_set_len(result, 0);
if (*++s) ++s; if (*++s) ++s;
} }