提交 517b5eb0 编写于 作者: L Lei Peng 提交者: mysterywolf

[libc][ctime] stime clear tv.tv_usec as zero

when using stime set rtc time, tv.tv_usec not 0,but always is 0xdeadbeef, make set time error
上级 ba6a27c8
......@@ -383,6 +383,7 @@ int stime(const time_t *t)
}
tv.tv_sec = *t;
tv.tv_usec = 0;
if (set_timeval(&tv) == RT_EOK)
{
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册