From: Kirill Frolov Date: Tue, 17 Dec 2019 11:23:02 +0000 (+0300) Subject: Fixed warning from static analyzer. X-Git-Tag: submit/tizen/20200515.062155^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0485e33a4f76a7f68d241e32070487ffb4b3dfce;p=sdk%2Ftools%2Fcoreprofiler.git Fixed warning from static analyzer. Variable `hr' might be uninitialized in case, when Initialized() function was called twice. --- diff --git a/src/profilerinfo.cpp b/src/profilerinfo.cpp index 0551c8e..b3e2442 100644 --- a/src/profilerinfo.cpp +++ b/src/profilerinfo.cpp @@ -38,7 +38,7 @@ HRESULT ProfilerInfo::Initialize(IUnknown *pICorProfilerInfoUnk) noexcept { this->Reset(); // Ensure ProfilerInfo is in initial state. - HRESULT hr; + HRESULT hr = S_OK; // for case when Initialize() called twice if (m_pProfilerInfo7 == nullptr) {