We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b03bb70 commit df8c29aCopy full SHA for df8c29a
components/finsh/cmd.c
@@ -201,7 +201,7 @@ long list_thread(void)
201
for (i = 0; i < find_arg.nr_out; i++)
202
{
203
struct rt_object *obj;
204
- struct rt_thread thread_info, *thread;
+ struct rt_thread *thread;
205
206
obj = rt_list_entry(obj_list[i], struct rt_object, list);
207
level = rt_spin_lock_irqsave(&info->spinlock);
@@ -212,7 +212,6 @@ long list_thread(void)
212
continue;
213
}
214
/* copy info */
215
- rt_memcpy(&thread_info, obj, sizeof thread_info);
216
rt_spin_unlock_irqrestore(&info->spinlock, level);
217
218
thread = (struct rt_thread *)obj;
0 commit comments