From f09bcbf96e19959a1a521f174a8b80a1482f02fb Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 17 Jan 2009 02:11:21 +0000 Subject: * vm_dump.c (vm_stack_dump_each): initialized at declarations. * vm_dump.c (rb_vm_bugreport): constified to suppress a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_dump.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'vm_dump.c') diff --git a/vm_dump.c b/vm_dump.c index 2098f129dd..aa49b0a54e 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -246,24 +246,19 @@ vm_stack_dump_each(rb_thread_t *th, rb_control_frame_t *cfp) VALUE *lfp = cfp->lfp; VALUE *dfp = cfp->dfp; - int argc = 0, local_size; + int argc = 0, local_size = 0; const char *name; rb_iseq_t *iseq = cfp->iseq; if (iseq == 0) { if (RUBYVM_CFUNC_FRAME_P(cfp)) { - argc = 0; - local_size = 0; name = rb_id2name(cfp->method_id); } else { name = "?"; - local_size = 0; } } else if (RUBY_VM_IFUNC_P(iseq)) { - argc = 0; - local_size = 0; name = ""; } else { @@ -605,7 +600,7 @@ rb_vm_bugreport(void) fprintf(stderr, "-- C level backtrace information " "-------------------------------------------\n"); for (i=0; i