summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index 33309af336..b67d79ab08 100644
--- a/error.c
+++ b/error.c
@@ -40,7 +40,7 @@ err_print(fmt, args)
char buf[BUFSIZ];
err_sprintf(buf, fmt, args);
- if (the_env->in_eval) {
+ if (rb_in_eval) {
if (errstr == Qnil) {
errstr = str_new2(buf);
}