提交 37d0be32 编写于 作者: C chunyexixiaoyu 提交者: guo

[libc][time] solve the problem which the os tick can be calculated wrongly...

[libc][time] solve the problem which the os tick can be calculated wrongly because the local variable was not initialized.
上级 a9dce729
......@@ -689,7 +689,7 @@ int rt_timespec_to_tick(const struct timespec *time)
{
int tick;
int nsecond, second;
struct timespec tp;
struct timespec tp = {0};
RT_ASSERT(time != RT_NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册