修复 mq_timedreceive 中 mq_timedreceive 为空时断言

This commit is contained in:
zhkag 2023-01-06 02:07:06 +00:00 committed by guo
parent 0c3a705482
commit a15a5b19a4
1 changed files with 2 additions and 2 deletions

View File

@ -254,8 +254,8 @@ ssize_t mq_timedreceive(mqd_t mqdes,
return -1;
}
tick = rt_timespec_to_tick(abs_timeout);
if (abs_timeout != RT_NULL)
tick = rt_timespec_to_tick(abs_timeout);
result = rt_mq_recv(mqdes->mq, msg_ptr, msg_len, tick);
if (result == RT_EOK)