aboutsummaryrefslogtreecommitdiff
path: root/source/Core/Scalar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Core/Scalar.cpp')
-rw-r--r--source/Core/Scalar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Core/Scalar.cpp b/source/Core/Scalar.cpp
index 0e9b98dc4ab6..0022c348bfee 100644
--- a/source/Core/Scalar.cpp
+++ b/source/Core/Scalar.cpp
@@ -1900,7 +1900,7 @@ Scalar::SetValueFromData (DataExtractor &data, lldb::Encoding encoding, size_t b
break;
case lldb::eEncodingUint:
{
- lldb::offset_t offset;
+ lldb::offset_t offset = 0;
switch (byte_size)
{
@@ -1916,7 +1916,7 @@ Scalar::SetValueFromData (DataExtractor &data, lldb::Encoding encoding, size_t b
break;
case lldb::eEncodingSint:
{
- lldb::offset_t offset;
+ lldb::offset_t offset = 0;
switch (byte_size)
{
@@ -1932,7 +1932,7 @@ Scalar::SetValueFromData (DataExtractor &data, lldb::Encoding encoding, size_t b
break;
case lldb::eEncodingIEEE754:
{
- lldb::offset_t offset;
+ lldb::offset_t offset = 0;
if (byte_size == sizeof (float))
operator=((float)data.GetFloat(&offset));