From 3e1b736b342e0c0288d88be54dee776a0ad14ee5 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 14 Sep 2017 01:06:40 +0200 Subject: [PATCH] Use better variable name. --- server/TracyView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index b34cae41..d1ae703f 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -87,10 +87,10 @@ void View::Worker() } else { - QueueItem hdr; - if( !sock.Read( &hdr.hdr, sizeof( QueueHeader ), &tv, ShouldExit ) ) goto close; - if( !sock.Read( ((char*)&hdr) + sizeof( QueueHeader ), QueueDataSize[hdr.hdr.idx] - sizeof( QueueHeader ), &tv, ShouldExit ) ) goto close; - Process( hdr ); + QueueItem ev; + if( !sock.Read( &ev.hdr, sizeof( QueueHeader ), &tv, ShouldExit ) ) goto close; + if( !sock.Read( ((char*)&ev) + sizeof( QueueHeader ), QueueDataSize[ev.hdr.idx] - sizeof( QueueHeader ), &tv, ShouldExit ) ) goto close; + Process( ev ); } }