[Lldb-commits] [lldb] r197631 - Fix std::string initialization in Queue ctor.
Jason Molenda
jmolenda at apple.com
Wed Dec 18 16:09:13 PST 2013
Author: jmolenda
Date: Wed Dec 18 18:09:13 2013
New Revision: 197631
URL: http://llvm.org/viewvc/llvm-project?rev=197631&view=rev
Log:
Fix std::string initialization in Queue ctor.
<rdar://problem/15694319>
Modified:
lldb/trunk/source/Target/Queue.cpp
Modified: lldb/trunk/source/Target/Queue.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Queue.cpp?rev=197631&r1=197630&r2=197631&view=diff
==============================================================================
--- lldb/trunk/source/Target/Queue.cpp (original)
+++ lldb/trunk/source/Target/Queue.cpp Wed Dec 18 18:09:13 2013
@@ -18,9 +18,12 @@ using namespace lldb_private;
Queue::Queue (ProcessSP process_sp, lldb::queue_id_t queue_id, const char *queue_name) :
m_process_wp (),
m_queue_id (queue_id),
- m_queue_name (queue_name),
+ m_queue_name (),
m_enqueued_items()
{
+ if (queue_name)
+ m_queue_name = queue_name;
+
m_process_wp = process_sp;
m_index_id = process_sp->AssignIndexIDToQueue (queue_id);
}
More information about the lldb-commits
mailing list