From 1dac7db9cd6e18cdcb72d1eb2727032f28ff7913 Mon Sep 17 00:00:00 2001 From: Pikachu Date: Sat, 29 Apr 2023 07:33:37 +0800 Subject: [PATCH] =?UTF-8?q?[HUST=20CSE][kernel][thread]=20=E5=8F=98?= =?UTF-8?q?=E9=87=8F=20rt=5Ferr=20=E6=B2=A1=E6=9C=89=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=20(#7401)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread.c b/src/thread.c index 56f9094ab0..aef098963c 100644 --- a/src/thread.c +++ b/src/thread.c @@ -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) {