1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ruby.c: unnecessary variable

* ruby.c (open_load_file): remove unnecessary nested local
  variable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-10-17 23:59:00 +00:00
parent d6379666ca
commit acc94eb939

2
ruby.c
View file

@ -1803,7 +1803,7 @@ open_load_file(VALUE fname_v, int *xflag)
} }
#endif #endif
if (!ruby_is_fd_loadable(fd)) { if (!ruby_is_fd_loadable(fd)) {
int e = errno; e = errno;
(void)close(fd); (void)close(fd);
rb_load_fail(fname_v, strerror(e)); rb_load_fail(fname_v, strerror(e));
} }