[bug] [libc] 修复posix_sem_find中iter->sem的数据类型转换问题

This commit is contained in:
chenjh 2020-11-24 11:18:54 +08:00
parent b7dd3cae09
commit cb54cda19e
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ static sem_t *posix_sem_find(const char* name)
for (iter = posix_sem_list; iter != RT_NULL; iter = iter->next)
{
object = (rt_object_t)&(iter->sem);
object = (rt_object_t)iter->sem;
if (strncmp(object->name, name, RT_NAME_MAX) == 0)
{