summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-compiler/core/parse.y
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-07-24 16:46:27 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-07-24 16:46:27 +0900
commit1fc9a3019d586a04a82bde86a7c443673f94cd7c (patch)
treecdc70110dde0213baa3776fe6912f5565a1f5cce /mrbgems/mruby-compiler/core/parse.y
parent1c360965e79ab73de2a29291869cefcfcd750044 (diff)
downloadmruby-1fc9a3019d586a04a82bde86a7c443673f94cd7c.tar.gz
mruby-1fc9a3019d586a04a82bde86a7c443673f94cd7c.zip
Initialize potentially uninitialized local variable.
Diffstat (limited to 'mrbgems/mruby-compiler/core/parse.y')
-rw-r--r--mrbgems/mruby-compiler/core/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y
index 76f1ceb2b..5d5ef297c 100644
--- a/mrbgems/mruby-compiler/core/parse.y
+++ b/mrbgems/mruby-compiler/core/parse.y
@@ -5558,7 +5558,7 @@ mrb_parser_parse(parser_state *p, mrbc_context *c)
p->jmp = &buf1;
MRB_TRY(p->jmp) {
- int n;
+ int n = 1;
p->cmd_start = TRUE;
p->in_def = p->in_single = 0;