mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Fix memcpy from nullptr.
This commit is contained in:
parent
ef9bcb6696
commit
f7f0ec0cec
@ -47,7 +47,7 @@ void ThreadCompress::Save( FileWrite& f ) const
|
||||
{
|
||||
uint64_t sz = m_threadExpand.size();
|
||||
f.Write( &sz, sizeof( sz ) );
|
||||
f.Write( m_threadExpand.data(), sz * sizeof( uint64_t ) );
|
||||
if( sz != 0 ) f.Write( m_threadExpand.data(), sz * sizeof( uint64_t ) );
|
||||
}
|
||||
|
||||
uint16_t ThreadCompress::CompressThreadReal( uint64_t thread )
|
||||
|
@ -5647,7 +5647,7 @@ void Worker::Write( FileWrite& f )
|
||||
|
||||
sz = m_data.appInfo.size();
|
||||
f.Write( &sz, sizeof( sz ) );
|
||||
f.Write( m_data.appInfo.data(), sizeof( m_data.appInfo[0] ) * sz );
|
||||
if( sz != 0 ) f.Write( m_data.appInfo.data(), sizeof( m_data.appInfo[0] ) * sz );
|
||||
|
||||
sz = m_data.frameImage.size();
|
||||
f.Write( &sz, sizeof( sz ) );
|
||||
|
Loading…
Reference in New Issue
Block a user