From 20685cdc85ff218093194176a20b9568c98254e7 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 18 Oct 2017 04:35:25 +0000 Subject: Get rid of shadowing local variables git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index f8b424f2fc..b0e4888f7e 100644 --- a/file.c +++ b/file.c @@ -3946,11 +3946,11 @@ realpath_rec(long *prefixlenp, VALUE *resolvedp, const char *unresolved, link_names = skipprefixroot(link_prefix, link_prefix + RSTRING_LEN(link), rb_enc_get(link)); link_prefixlen = link_names - link_prefix; if (link_prefixlen > 0) { - rb_encoding *enc, *linkenc = rb_enc_get(link); + rb_encoding *tmpenc, *linkenc = rb_enc_get(link); link_orig = link; link = rb_str_subseq(link, 0, link_prefixlen); - enc = rb_enc_check(*resolvedp, link); - if (enc != linkenc) link = rb_str_conv_enc(link, linkenc, enc); + tmpenc = rb_enc_check(*resolvedp, link); + if (tmpenc != linkenc) link = rb_str_conv_enc(link, linkenc, tmpenc); *resolvedp = link; *prefixlenp = link_prefixlen; } -- cgit v1.2.3