summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));
}