aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorrhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-26 01:50:20 +0000
committerrhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-26 01:50:20 +0000
commitaeab8b278e9baf8c6816534f1491cf1deff2cc97 (patch)
treedaa968d41fdfe6194a4f920c2d173b4490157e9a /compile.c
parent834b281a527fb530522e8d2adca3f1becade1f08 (diff)
downloadruby-aeab8b278e9baf8c6816534f1491cf1deff2cc97.tar.gz
compile.c: fix possible use of uninitialized value
LABEL::unremovable added by r58810 is not initialized by new_label_body(), making the optimization unstable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 3939ea0360..a2a80c919a 100644
--- a/compile.c
+++ b/compile.c
@@ -1019,6 +1019,7 @@ new_label_body(rb_iseq_t *iseq, long line)
labelobj->refcnt = 0;
labelobj->set = 0;
labelobj->rescued = LABEL_RESCUE_NONE;
+ labelobj->unremovable = 0;
return labelobj;
}