mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
c50220619b
commit
a41386a2dc
1 changed files with 1 additions and 1 deletions
2
ruby.c
2
ruby.c
|
@ -1965,7 +1965,7 @@ open_load_file(VALUE fname_v, int *xflag)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((fd = rb_cloexec_open(fname, mode, 0)) < 0) {
|
if ((fd = rb_cloexec_open(fname, mode, 0)) < 0) {
|
||||||
int e = errno;
|
e = errno;
|
||||||
if (!rb_gc_for_fd(e)) {
|
if (!rb_gc_for_fd(e)) {
|
||||||
rb_load_fail(fname_v, strerror(e));
|
rb_load_fail(fname_v, strerror(e));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue