summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-13 09:36:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-13 09:36:28 +0000
commit026e1858383555ede7b307dc9484a11d71dd5e1d (patch)
treee4e10b8bef2ca3aae6a28bbd51a1698829b52a92 /eval.c
parent449f885d62984e2893bcb30258cf04cd67f07559 (diff)
* eval.c (rb_eval): avoid uninitialized global/class variable
warnings at `||='. [ruby-dev:18278] * parse.y (stmt, arg): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 70cb068..8d93cbc 100644
--- a/eval.c
+++ b/eval.c
@@ -2891,7 +2891,7 @@ rb_eval(self, n)
goto again;
case NODE_OP_ASGN_OR:
- if ((node->nd_aid && !rb_ivar_defined(self, node->nd_aid)) ||
+ if ((node->nd_aid && !is_defined(self, node->nd_head, 0)) ||
!RTEST(result = rb_eval(self, node->nd_head))) {
node = node->nd_value;
goto again;