aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-17 23:59:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-17 23:59:00 +0000
commita9c86b883d49f8c744858689901a2e4a91fef41c (patch)
tree0e7a9ba73acb9f87680adc74b276bc1f60ee2a73 /ruby.c
parent3960aacd57a49e899a4b785d75251199668fc124 (diff)
downloadruby-a9c86b883d49f8c744858689901a2e4a91fef41c.tar.gz
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
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 2f3e9409ca..8457bea19a 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1803,7 +1803,7 @@ open_load_file(VALUE fname_v, int *xflag)
}
#endif
if (!ruby_is_fd_loadable(fd)) {
- int e = errno;
+ e = errno;
(void)close(fd);
rb_load_fail(fname_v, strerror(e));
}