summaryrefslogtreecommitdiff
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
commitacc94eb9399f56daaa72d1bd98e729c71ad09230 (patch)
tree0e7a9ba73acb9f87680adc74b276bc1f60ee2a73 /ruby.c
parentd6379666cad4bda4e147b9f9bb2d07a80a1a3aa9 (diff)
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 2f3e940..8457bea1 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));
}