From dfc0e27b4d731740ee372dad35915e672d461319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=99=E8=92=99plus?= Date: Mon, 15 Sep 2025 15:44:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E6=8E=89=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E6=8B=B7=E8=B4=9D=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/finsh/cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index 14086b83d6e..2d67c85fe35 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -201,7 +201,7 @@ long list_thread(void) for (i = 0; i < find_arg.nr_out; i++) { struct rt_object *obj; - struct rt_thread thread_info, *thread; + struct rt_thread *thread; obj = rt_list_entry(obj_list[i], struct rt_object, list); level = rt_spin_lock_irqsave(&info->spinlock); @@ -212,7 +212,6 @@ long list_thread(void) continue; } /* copy info */ - rt_memcpy(&thread_info, obj, sizeof thread_info); rt_spin_unlock_irqrestore(&info->spinlock, level); thread = (struct rt_thread *)obj;