aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-24 20:50:29 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-24 20:50:29 +0000
commita41386a2dc56ae15504669dd6e94675b4c4b7a6b (patch)
tree0b2822762d8e2c575b6d9325a3972abc2298fafc /ruby.c
parentc50220619be5c1d83768611a41d27442dd2056de (diff)
downloadruby-a41386a2dc56ae15504669dd6e94675b4c4b7a6b.tar.gz
ruby.c (open_load_file): avoid shadowing variable for errno
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 16be70e942..ee5d98761b 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1965,7 +1965,7 @@ open_load_file(VALUE fname_v, int *xflag)
#endif
if ((fd = rb_cloexec_open(fname, mode, 0)) < 0) {
- int e = errno;
+ e = errno;
if (!rb_gc_for_fd(e)) {
rb_load_fail(fname_v, strerror(e));
}