drivers/note:Fix the crash issue when enabling trace dump

fix dereference of null pointer.

Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
This commit is contained in:
liwenxiang1
2025-03-16 22:41:06 +08:00
committed by Xiang Xiao
parent a340cb59d9
commit 0750e417c9
+1 -1
View File
@@ -2118,7 +2118,7 @@ void note_get_taskname(pid_t pid, FAR char *buf, size_t len)
if (ti != NULL)
{
strlcpy(buf, tcb->name, len);
strlcpy(buf, ti->name, len);
}
else
{