ruby-changes:55611
From: Nobuyoshi <ko1@a...>
Date: Mon, 29 Apr 2019 11:48:52 +0900 (JST)
Subject: [ruby-changes:55611] Nobuyoshi Nakada:812a438145 (trunk): iseq.c: removed unnecessary zero-fills
https://git.ruby-lang.org/ruby.git/commit/?id=812a438145 From 812a438145a604e1361d4bf07cc3d81452cfb0ec Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 29 Apr 2019 11:31:18 +0900 Subject: iseq.c: removed unnecessary zero-fills diff --git a/iseq.c b/iseq.c index adf4b07..ac5476d 100644 --- a/iseq.c +++ b/iseq.c @@ -2183,9 +2183,10 @@ rb_iseq_disasm_recursive(const rb_iseq_t *iseq, VALUE indent) https://github.com/ruby/ruby/blob/trunk/iseq.c#L2183 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; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/