summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-27 14:59:55 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-27 14:59:55 +0000
commit543a8b5e3d6869ab2312019afdd7ec277125b626 (patch)
tree646ee01f6169ddfdc075d762c8fe8273d27f6126 /eval.c
parent7015fcf9f88ad4f0131439d6c1c30cef320f9c8c (diff)
revert r57222 because of SEGV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@57226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index a8935ff7ce..fbd28565ed 100644
--- a/eval.c
+++ b/eval.c
@@ -468,9 +468,6 @@ exc_setup_cause(VALUE exc, VALUE cause)
#endif
if (!NIL_P(cause) && cause != exc) {
rb_ivar_set(exc, id_cause, cause);
- if (!rb_ivar_defined(cause, id_cause)) {
- rb_ivar_set(cause, id_cause, Qnil);
- }
}
return exc;
}