mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 06:03:51 +00:00
Don't copy thread name needlessly.
This commit is contained in:
parent
780e838785
commit
56bd01dfd1
@ -113,8 +113,7 @@ const char* GetThreadName( uint64_t id )
|
|||||||
{
|
{
|
||||||
if( ptr->id == id )
|
if( ptr->id == id )
|
||||||
{
|
{
|
||||||
strcpy( buf, ptr->name );
|
return ptr->name;
|
||||||
return buf;
|
|
||||||
}
|
}
|
||||||
ptr = ptr->next;
|
ptr = ptr->next;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user