diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-08-11 22:23:44 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-08-11 22:23:44 +0000 |
| commit | ec95565a9d5a958d9e7246cd488cc731cf7014dd (patch) | |
| tree | da7c246853a00bea385a3d698e77d451216998e2 | |
| parent | aa8a827f08971db127c1b0e06571c14365cc4056 (diff) | |
| download | bcm5719-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.cpp | 2 |
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(); |

