From d240423d7422b51e10942fab00a2a34ed4c32e6f Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Wed, 17 Nov 2010 16:17:07 +0000 Subject: construct module symbol table git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1053 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/object.c') diff --git a/src/object.c b/src/object.c index c992f0fe04..4544d82ca4 100644 --- a/src/object.c +++ b/src/object.c @@ -283,9 +283,9 @@ rt_object_t rt_object_allocate(enum rt_object_class_type type, const char* name) #ifdef RT_USING_MODULE if(rt_module_self() != RT_NULL) { - object->module_id = (void*)rt_module_self(); object->flag |= RT_OBJECT_FLAG_MODULE; - } + } + object->module_id = (void*)rt_module_self(); #endif /* copy name */ -- cgit v1.3.1