[HUST CSE][kernel][thread] 变量 rt_err 没有初始化 (#7401)

This commit is contained in:
Pikachu 2023-04-29 07:33:37 +08:00 committed by GitHub
parent 4eeca5049e
commit 1dac7db9cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{ {