From 15f07a3e68b2297da430392ce53956619775b644 Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Sat, 20 Nov 2010 15:18:39 +0000 Subject: [PATCH] initial cleanup function of thread to zero. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1070 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/thread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/thread.c b/src/thread.c index 32471bad3f..544a295eaa 100644 --- a/src/thread.c +++ b/src/thread.c @@ -74,7 +74,8 @@ static rt_err_t _rt_thread_init(struct rt_thread* thread, thread->error = RT_EOK; thread->stat = RT_THREAD_INIT; - /* init user data */ + /* initialize cleanup function and user data */ + thread->cleanup = 0; thread->user_data = 0; /* init thread timer */