Skip to content

Commit

Permalink
[HUST CSE][kernel][thread] 变量 rt_err 没有初始化 (#7401)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pikachu authored Apr 28, 2023
1 parent 4eeca50 commit 1dac7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ rt_err_t rt_thread_control(rt_thread_t thread, int cmd, void *arg)

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)
{
Expand Down

0 comments on commit 1dac7db

Please sign in to comment.