From c99537c402a9568a2be00d9256809b32bc8d19ea Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 27 Feb 2020 00:26:58 +0100 Subject: [PATCH] Provide default value for sourceLocationZonesReady. --- server/TracyWorker.cpp | 1 - server/TracyWorker.hpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 876d1e9e..16a0fd4a 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -657,7 +657,6 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks ) } #ifndef TRACY_NO_STATISTICS - m_data.sourceLocationZonesReady = false; m_data.sourceLocationZones.reserve( sle + sz ); f.Read( sz ); diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index c53b0554..2ac52cd8 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -208,7 +208,7 @@ private: Vector sourceLocationExpand; #ifndef TRACY_NO_STATISTICS unordered_flat_map sourceLocationZones; - bool sourceLocationZonesReady; + bool sourceLocationZonesReady = false; #else unordered_flat_map sourceLocationZonesCnt; #endif