[Lldb-commits] [lldb] r137374 - /lldb/trunk/source/Core/ValueObjectRegister.cpp

Johnny Chen johnny.chen at apple.com
Thu Aug 11 15:23:44 PDT 2011


Author: johnny
Date: Thu Aug 11 17:23:44 2011
New Revision: 137374

URL: http://llvm.org/viewvc/llvm-project?rev=137374&view=rev
Log:
Fix 'Undefined or garbage value returned to caller' (static analyzer).

Modified:
    lldb/trunk/source/Core/ValueObjectRegister.cpp

Modified: lldb/trunk/source/Core/ValueObjectRegister.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObjectRegister.cpp?rev=137374&r1=137373&r2=137374&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObjectRegister.cpp (original)
+++ lldb/trunk/source/Core/ValueObjectRegister.cpp Thu Aug 11 17:23:44 2011
@@ -210,7 +210,7 @@
 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();





More information about the lldb-commits mailing list