summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c4
1 files changed, 2 insertions, 2 deletions
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 */