From b39baaa171012c7eb7062763a9da40c0d9f41dbc Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 3 Jul 2000 05:46:36 +0000 Subject: matz git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 0610455f1..7415581d6 100644 --- a/eval.c +++ b/eval.c @@ -1539,8 +1539,10 @@ rb_mod_alias_method(mod, newname, oldname) ALLOC_N(VALUE,n),tmp__protect_tmp,n), \ (void*)tmp__protect_tmp->nd_head) # define TMP_PROTECT_END do {\ - rb_gc_force_recycle((VALUE)tmp__protect_tmp);\ - alloca(0);\ + if (tmp__protect_tmp) {\ + rb_gc_force_recycle((VALUE)tmp__protect_tmp);\ + alloca(0);\ + }\ } while (0) #else # define TMP_PROTECT typedef int foobazzz -- cgit