From 067807af61c0df207b4ca77660eeb3b6e9e6882c Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Mon, 23 Apr 2012 17:43:42 -0700 Subject: [PATCH] threads: initialized Thread member variables --- threads.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/threads.cc b/threads.cc index be384fb..4c2086d 100644 --- a/threads.cc +++ b/threads.cc @@ -80,6 +80,9 @@ Thread::Thread(thrd_t *t, void (*func)(), void *a) { Thread::Thread(thrd_t *t) { /* system thread */ user_thread = t; + start_routine = NULL; + arg = NULL; + state = THREAD_CREATED; model->assign_id(this); create_context(); -- 2.34.1