summaryrefslogtreecommitdiff
path: root/vm_trace.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-31 05:02:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-31 05:02:47 +0000
commit4faf219853a67128c9bd3a1282f0419cd3def0fb (patch)
treeda158b61dff86a785452af2e5f1d4b751dd657bd /vm_trace.c
parent667a6a851656d5acdd6256301fc9bdf878089bef (diff)
vm_trace.c: uninitialized state
* vm_trace.c (rb_threadptr_exec_event_hooks): fix uninitialized state when no events is excuted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_trace.c')
-rw-r--r--vm_trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_trace.c b/vm_trace.c
index 666d3d55e0..df07be6c9b 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -320,7 +320,7 @@ rb_threadptr_exec_event_hooks(rb_thread_t *th, rb_event_flag_t event, VALUE self
{
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;