summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-08-11 22:23:44 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-08-11 22:23:44 +0000
commitec95565a9d5a958d9e7246cd488cc731cf7014dd (patch)
treeda7c246853a00bea385a3d698e77d451216998e2
parentaa8a827f08971db127c1b0e06571c14365cc4056 (diff)
downloadbcm5719-llvm-ec95565a9d5a958d9e7246cd488cc731cf7014dd.tar.gz
bcm5719-llvm-ec95565a9d5a958d9e7246cd488cc731cf7014dd.zip
Fix 'Undefined or garbage value returned to caller' (static analyzer).
llvm-svn: 137374
-rw-r--r--lldb/source/Core/ValueObjectRegister.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectRegister.cpp b/lldb/source/Core/ValueObjectRegister.cpp
index beada802557..203347e8816 100644
--- a/lldb/source/Core/ValueObjectRegister.cpp
+++ b/lldb/source/Core/ValueObjectRegister.cpp
@@ -210,7 +210,7 @@ ValueObjectRegisterSet::UpdateValue ()
ValueObject *
ValueObjectRegisterSet::CreateChildAtIndex (uint32_t idx, bool synthetic_array_member, int32_t synthetic_index)
{
- ValueObject *valobj;
+ ValueObject *valobj = NULL;
if (m_reg_ctx_sp && m_reg_set)
{
const uint32_t num_children = GetNumChildren();
OpenPOWER on IntegriCloud