提交 a15a5b19 编写于 作者: Z zhkag 提交者: guo

修复 mq_timedreceive 中 mq_timedreceive 为空时断言

上级 0c3a7054
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册