ruby-changes:49909
From: normal <ko1@a...>
Date: Thu, 25 Jan 2018 05:50:34 +0900 (JST)
Subject: [ruby-changes:49909] normal:r62027 (trunk): ruby.c (open_load_file): avoid shadowing variable for errno
normal 2018-01-25 05:50:29 +0900 (Thu, 25 Jan 2018) New Revision: 62027 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62027 Log: ruby.c (open_load_file): avoid shadowing variable for errno Modified files: trunk/ruby.c Index: ruby.c =================================================================== --- ruby.c (revision 62026) +++ ruby.c (revision 62027) @@ -1965,7 +1965,7 @@ open_load_file(VALUE fname_v, int *xflag https://github.com/ruby/ruby/blob/trunk/ruby.c#L1965 #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)); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/