Fixing a compiler warning about has_children being used before being initialized
authorEnrico Granata <egranata@apple.com>
Tue, 23 Oct 2012 02:07:54 +0000 (02:07 +0000)
committerEnrico Granata <egranata@apple.com>
Tue, 23 Oct 2012 02:07:54 +0000 (02:07 +0000)
llvm-svn: 166462

lldb/source/Core/ValueObject.cpp

index 41c7dbe..86b7e89 100644 (file)
@@ -601,7 +601,7 @@ ValueObject::GetNumChildren ()
 bool
 ValueObject::MightHaveChildren()
 {
-    bool has_children;
+    bool has_children = false;
     clang_type_t clang_type = GetClangType();
     if (clang_type)
     {