修复 mq_timedreceive 中 mq_timedreceive 为空时断言
This commit is contained in:
parent
0c3a705482
commit
a15a5b19a4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue