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 | 20e663f4da447f98b8edb25d68413ae0a71ce76b (patch) | |
tree | 8b4c4b5e3b8666b96cc2792e4a0907800771cd03 /source/Core/ValueObjectRegister.cpp | |
parent | 87ff150489ca16ffebeb098d16e465800f54ee3c (diff) | |
download | lldb-20e663f4da447f98b8edb25d68413ae0a71ce76b.tar.gz |
Fix 'Undefined or garbage value returned to caller' (static analyzer).
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@137374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Core/ValueObjectRegister.cpp')
-rw-r--r-- | source/Core/ValueObjectRegister.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Core/ValueObjectRegister.cpp b/source/Core/ValueObjectRegister.cpp index beada8025..203347e88 100644 --- a/source/Core/ValueObjectRegister.cpp +++ b/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(); |