`m_clrPath` is initialized in ManagedDebugger::AttachToProcess()
authorAndrey Okoshkin <a.okoshkin@samsung.com>
Mon, 5 Feb 2018 09:39:32 +0000 (12:39 +0300)
committerAndrey Okoshkin <a.okoshkin@samsung.com>
Mon, 5 Feb 2018 09:39:32 +0000 (12:39 +0300)
Previously `m_clrPath` was a local variable.

src/debug/netcoredbg/manageddebugger.cpp

index a74df303b13d43ada55b5c36d97d2951da663401..22bc7d1b69fe2f784f667cf588c98f6c84a17d8d 100644 (file)
@@ -1099,7 +1099,7 @@ HRESULT ManagedDebugger::AttachToProcess(DWORD pid)
 
     IfFailRet(CheckNoProcess());
 
-    std::string m_clrPath = GetCLRPath(pid);
+    m_clrPath = GetCLRPath(pid);
     if (m_clrPath.empty())
         return E_INVALIDARG; // Unable to find libcoreclr.so