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:
parent
a55567a066
commit
47fd9eb6e1
1 changed files with 1 additions and 0 deletions
1
file.c
1
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue