[Lldb-commits] [lldb] r132823 - /lldb/trunk/source/Core/ConstString.cpp

Greg Clayton gclayton at apple.com
Thu Jun 9 17:00:19 PDT 2011


Author: gclayton
Date: Thu Jun  9 19:00:19 2011
New Revision: 132823

URL: http://llvm.org/viewvc/llvm-project?rev=132823&view=rev
Log:
Explicitly set the value to NULL when adding a string map entry.


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

Modified: lldb/trunk/source/Core/ConstString.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ConstString.cpp?rev=132823&r1=132822&r2=132823&view=diff
==============================================================================
--- lldb/trunk/source/Core/ConstString.cpp (original)
+++ lldb/trunk/source/Core/ConstString.cpp Thu Jun  9 19:00:19 2011
@@ -108,7 +108,7 @@
         {
             Mutex::Locker locker (m_mutex);
             llvm::StringRef string_ref (cstr, cstr_len);
-            StringPoolEntryType& entry = m_string_map.GetOrCreateValue (string_ref);
+            StringPoolEntryType& entry = m_string_map.GetOrCreateValue (string_ref, (StringPoolValueType)NULL);
             return entry.getKeyData();
         }
         return NULL;





More information about the lldb-commits mailing list