ruby-changes:24810
From: nobu <ko1@a...>
Date: Fri, 31 Aug 2012 14:02:56 +0900 (JST)
Subject: [ruby-changes:24810] nobu:r36861 (trunk): vm_trace.c: uninitialized state
nobu 2012-08-31 14:02:47 +0900 (Fri, 31 Aug 2012) New Revision: 36861 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36861 Log: vm_trace.c: uninitialized state * vm_trace.c (rb_threadptr_exec_event_hooks): fix uninitialized state when no events is excuted. Modified files: trunk/ChangeLog trunk/vm_trace.c Index: ChangeLog =================================================================== --- ChangeLog (revision 36860) +++ ChangeLog (revision 36861) @@ -1,3 +1,8 @@ +Fri Aug 31 14:02:44 2012 Nobuyoshi Nakada <nobu@r...> + + * vm_trace.c (rb_threadptr_exec_event_hooks): fix uninitialized state + when no events is excuted. + Thu Aug 30 18:21:51 2012 Tanaka Akira <akr@f...> * io.c (rb_io_close): call rb_last_status_clear. Index: vm_trace.c =================================================================== --- vm_trace.c (revision 36860) +++ vm_trace.c (revision 36861) @@ -320,7 +320,7 @@ { if (th->trace_running == 0 && self != rb_mRubyVMFrozenCore /* skip special methods. TODO: remove it. */) { - int state; + int state = 0; int outer_state = th->state; th->state = 0; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/