[Lldb-commits] [lldb] r121897 - /lldb/trunk/source/Target/Process.cpp

Greg Clayton gclayton at apple.com
Wed Dec 15 12:52:40 PST 2010


Author: gclayton
Date: Wed Dec 15 14:52:40 2010
New Revision: 121897

URL: http://llvm.org/viewvc/llvm-project?rev=121897&view=rev
Log:
Fix invalid conversion from "const char *" to "char *" for linux systems. strchr() on darwin returns "char *" so we weren't seeing this issue on MacOSX.

Modified:
    lldb/trunk/source/Target/Process.cpp

Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=121897&r1=121896&r2=121897&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Wed Dec 15 14:52:40 2010
@@ -371,7 +371,7 @@
             const char *env_entry = host_env.GetStringAtIndex (idx);
             if (env_entry)
             {
-                char *equal_pos = ::strchr(env_entry, '=');
+                const char *equal_pos = ::strchr(env_entry, '=');
                 if (equal_pos)
                 {
                     std::string key (env_entry, equal_pos - env_entry);





More information about the lldb-commits mailing list