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

Enrico Granata egranata at apple.com
Mon Oct 22 19:07:54 PDT 2012


Author: enrico
Date: Mon Oct 22 21:07:54 2012
New Revision: 166462

URL: http://llvm.org/viewvc/llvm-project?rev=166462&view=rev
Log:
Fixing a compiler warning about has_children being used before being initialized

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=166462&r1=166461&r2=166462&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObject.cpp (original)
+++ lldb/trunk/source/Core/ValueObject.cpp Mon Oct 22 21:07:54 2012
@@ -601,7 +601,7 @@
 bool
 ValueObject::MightHaveChildren()
 {
-    bool has_children;
+    bool has_children = false;
     clang_type_t clang_type = GetClangType();
     if (clang_type)
     {





More information about the lldb-commits mailing list