[Lldb-commits] [lldb] r131039 - /lldb/trunk/source/Core/ValueObject.cpp

Jim Ingham jingham at apple.com
Fri May 6 17:10:58 PDT 2011


Author: jingham
Date: Fri May  6 19:10:58 2011
New Revision: 131039

URL: http://llvm.org/viewvc/llvm-project?rev=131039&view=rev
Log:
Fix an unitialized pointer in ValueObject::CreateChildAtIndex.

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

Modified: lldb/trunk/source/Core/ValueObject.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObject.cpp?rev=131039&r1=131038&r2=131039&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObject.cpp (original)
+++ lldb/trunk/source/Core/ValueObject.cpp Fri May  6 19:10:58 2011
@@ -389,7 +389,7 @@
 ValueObject *
 ValueObject::CreateChildAtIndex (uint32_t idx, bool synthetic_array_member, int32_t synthetic_index)
 {
-    ValueObject *valobj;
+    ValueObject *valobj = NULL;
     
     if (UpdateValueIfNeeded())
     {





More information about the lldb-commits mailing list