Author: abidh
Date: Mon Jun  1 12:08:30 2015
New Revision: 238761

URL: http://llvm.org/viewvc/llvm-project?rev=238761&view=rev
Log:
Initialize 3 variables which were being used un-initialized.

No regression on testsuite. Comitted as obvious.


Modified:
    lldb/trunk/source/Core/Scalar.cpp

Modified: lldb/trunk/source/Core/Scalar.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Scalar.cpp?rev=238761&r1=238760&r2=238761&view=diff
==============================================================================
--- lldb/trunk/source/Core/Scalar.cpp (original)
+++ lldb/trunk/source/Core/Scalar.cpp Mon Jun  1 12:08:30 2015
@@ -1900,7 +1900,7 @@ Scalar::SetValueFromData (DataExtractor
         break;
     case lldb::eEncodingUint:
         {
-            lldb::offset_t offset;
+            lldb::offset_t offset = 0;
             
             switch (byte_size)
             {
@@ -1916,7 +1916,7 @@ Scalar::SetValueFromData (DataExtractor
         break;
     case lldb::eEncodingSint:
         {
-            lldb::offset_t offset;
+            lldb::offset_t offset = 0;
             
             switch (byte_size)
             {
@@ -1932,7 +1932,7 @@ Scalar::SetValueFromData (DataExtractor
         break;
     case lldb::eEncodingIEEE754:
         {
-            lldb::offset_t offset;
+            lldb::offset_t offset = 0;
             
             if (byte_size == sizeof (float))
                 operator=((float)data.GetFloat(&offset));


_______________________________________________
lldb-commits mailing list
lldb-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to