mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Handle nullptr in FindStringIdx.
This commit is contained in:
parent
38bfa7bdb6
commit
6d435e08c8
@ -2433,6 +2433,7 @@ int64_t Worker::GetZoneEnd( const GpuEvent& ev )
|
||||
|
||||
uint32_t Worker::FindStringIdx( const char* str ) const
|
||||
{
|
||||
if( !str ) return 0;
|
||||
charutil::StringKey key = { str, strlen( str ) };
|
||||
auto sit = m_data.stringMap.find( key );
|
||||
if( sit == m_data.stringMap.end() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user