summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-04-29 11:31:18 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-04-29 11:31:18 +0900
commit812a438145a604e1361d4bf07cc3d81452cfb0ec (patch)
tree462b2afa206fcd6e86a9161635f9a6f9ce8dadc0 /iseq.c
parent6033423d6882546e132a450ab9efc66507879594 (diff)
iseq.c: removed unnecessary zero-fills
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/iseq.c b/iseq.c
index adf4b07dd9..ac5476dabf 100644
--- a/iseq.c
+++ b/iseq.c
@@ -2183,9 +2183,10 @@ rb_iseq_disasm_recursive(const rb_iseq_t *iseq, VALUE indent)
int li = body->local_table_size - --i - 1;
long width;
VALUE name = local_var_name(iseq, 0, i);
- char argi[0x100] = "";
- char opti[0x100] = "";
+ char argi[0x100];
+ char opti[0x100];
+ opti[0] = '\0';
if (body->param.flags.has_opt) {
int argc = body->param.lead_num;
int opts = body->param.opt_num;