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