mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +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…
Reference in New Issue
Block a user