[x86/Linux] Fix error variable 'td' is uninitialized (dotnet/coreclr#8299)
authorSaeHie Park <saehie.park@gmail.com>
Mon, 28 Nov 2016 22:36:39 +0000 (07:36 +0900)
committerJan Kotas <jkotas@microsoft.com>
Mon, 28 Nov 2016 22:36:39 +0000 (14:36 -0800)
Fix compile error for x86/Linux
- make compiler happy with initialize variable 'td' with 0.0

Commit migrated from https://github.com/dotnet/coreclr/commit/e5d9c9f4dea33b66339f748d837e99a3d645ff79

src/coreclr/src/debug/di/rsthread.cpp

index e4e2066..a4660be 100644 (file)
@@ -1493,7 +1493,7 @@ void CordbThread::Get32bitFPRegisters(CONTEXT * pContext)
 
     for (i = 0; i <= floatStackTop; i++)
     {
-        long double td;
+        double td = 0.0;
         __asm fstp td // copy out the double
         m_floatValues[i] = td;
     }