diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index bb551870..4ea61fb3 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -2692,8 +2692,9 @@ void Profiler::ReportTopology() sprintf( path, "%s%i/topology/physical_package_id", basePath, i ); char buf[1024]; FILE* f = fopen( path, "rb" ); - if( f == nullptr ) { - tracy_free(cpuData); + if( !f ) + { + tracy_free( cpuData ); return; } auto read = fread( buf, 1, 1024, f ); diff --git a/import-chrome/src/import-chrome.cpp b/import-chrome/src/import-chrome.cpp index 9809cfd3..c5d21172 100644 --- a/import-chrome/src/import-chrome.cpp +++ b/import-chrome/src/import-chrome.cpp @@ -179,7 +179,7 @@ int main( int argc, char** argv ) for( auto& v : messages ) v.timestamp -= mts; for( auto& plot : plots ) { - for( auto& v : plot.data ) v.first -= mts; + for( auto& v : plot.data ) v.first -= mts; } printf( "\33[2KProcessing...\r" );