From 6c53cac15e6cd49053b503f4b287e70d2d51c6b6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 16 Aug 2019 21:20:04 +0200 Subject: [PATCH] Fix uninitialized variable. --- server/TracyWorker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 91e09eab..f26096d7 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -4129,6 +4129,7 @@ void Worker::ProcessContextSwitch( const QueueContextSwitch& ev ) auto& cx = cs.push_next(); cx.SetStart( time ); + cx.SetEnd( -1 ); cx.SetThread( ev.newThread ); // At this point that check is approximate