[Lldb-commits] [PATCH] D26528: Fix uninitialized members.

Sam McCall via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 10 15:07:08 PST 2016


sammccall created this revision.
sammccall added a subscriber: lldb-commits.

Fix uninitialized members.


https://reviews.llvm.org/D26528

Files:
  source/Host/common/FileSpec.cpp
  source/Target/Process.cpp


Index: source/Target/Process.cpp
===================================================================
--- source/Target/Process.cpp
+++ source/Target/Process.cpp
@@ -4581,7 +4581,7 @@
       : IOHandler(process->GetTarget().GetDebugger(),
                   IOHandler::Type::ProcessIO),
         m_process(process), m_read_file(), m_write_file(write_fd, false),
-        m_pipe() {
+        m_pipe(), m_is_running(false) {
     m_pipe.CreateNew(false);
     m_read_file.SetDescriptor(GetInputFD(), false);
   }
Index: source/Host/common/FileSpec.cpp
===================================================================
--- source/Host/common/FileSpec.cpp
+++ source/Host/common/FileSpec.cpp
@@ -278,8 +278,8 @@
 }
 
 FileSpec::FileSpec()
-    : m_directory(), m_filename(), m_syntax(FileSystem::GetNativePathSyntax()) {
-}
+    : m_directory(), m_filename(), m_is_resolved(false),
+      m_syntax(FileSystem::GetNativePathSyntax()) {}
 
 //------------------------------------------------------------------
 // Default constructor that can take an optional full path to a


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26528.77560.patch
Type: text/x-patch
Size: 1070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20161110/86e37fee/attachment.bin>


More information about the lldb-commits mailing list