Skip to content

Commit

Permalink
initialize variable related to exception in Thread. fix #1460
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Feb 15, 2012
1 parent 1523330 commit c5fc3ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thread.c
Expand Up @@ -45,6 +45,7 @@ thread_s_alloc(VALUE self, SEL sel)
{
rb_vm_thread_t *t = (rb_vm_thread_t *)xmalloc(sizeof(rb_vm_thread_t));
t->thread = 0;
t->exception = Qnil;
return Data_Wrap_Struct(self, NULL, NULL, t);
}

Expand Down

0 comments on commit c5fc3ae

Please sign in to comment.