summaryrefslogtreecommitdiff
path: root/components/libc/pthreads/pthread_cond.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/libc/pthreads/pthread_cond.c')
-rw-r--r--components/libc/pthreads/pthread_cond.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/libc/pthreads/pthread_cond.c b/components/libc/pthreads/pthread_cond.c
index 9349e84050..1a4217310e 100644
--- a/components/libc/pthreads/pthread_cond.c
+++ b/components/libc/pthreads/pthread_cond.c
@@ -109,6 +109,7 @@ int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr)
/* detach the object from system object container */
rt_object_detach(&(cond->sem.parent.parent));
+ cond->sem.parent.parent.type = RT_Object_Class_Semaphore;
return 0;
}