[Lldb-commits] [PATCH] linux: const violation

Stephen Wilson wilsons at start.ca
Wed Dec 15 12:40:54 PST 2010


    Fix invalid conversion from "const char *" to "char *".

diff --git a/source/Target/Process.cpp b/source/Target/Process.cpp
index c949555..7237815 100644
--- a/source/Target/Process.cpp
+++ b/source/Target/Process.cpp
@@ -371,7 +371,7 @@ Process::ProcessInstanceSettings::GetHostEnvironmentIfNeeded ()
             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