[HUST CSE][kernel][thread] 变量 rt_err 没有初始化 (#7401)
This commit is contained in:
parent
4eeca5049e
commit
1dac7db9cd
|
@ -896,7 +896,7 @@ rt_err_t rt_thread_control(rt_thread_t thread, int cmd, void *arg)
|
||||||
|
|
||||||
case RT_THREAD_CTRL_CLOSE:
|
case RT_THREAD_CTRL_CLOSE:
|
||||||
{
|
{
|
||||||
rt_err_t rt_err;
|
rt_err_t rt_err = -RT_EINVAL;
|
||||||
|
|
||||||
if (rt_object_is_systemobject((rt_object_t)thread) == RT_TRUE)
|
if (rt_object_is_systemobject((rt_object_t)thread) == RT_TRUE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue