From ec95565a9d5a958d9e7246cd488cc731cf7014dd Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 11 Aug 2011 22:23:44 +0000 Subject: [PATCH] Fix 'Undefined or garbage value returned to caller' (static analyzer). llvm-svn: 137374 --- lldb/source/Core/ValueObjectRegister.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Core/ValueObjectRegister.cpp b/lldb/source/Core/ValueObjectRegister.cpp index beada8025578..203347e88161 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();