| Index: runtime/bin/platform.h
|
| diff --git a/runtime/bin/platform.h b/runtime/bin/platform.h
|
| index 35ac3b0c4200d06c0bb17aa8f765be8c8ad31bd5..79cb7bec61264e839ff3f58ca82f0d6c5d00500b 100644
|
| --- a/runtime/bin/platform.h
|
| +++ b/runtime/bin/platform.h
|
| @@ -48,7 +48,7 @@ class Platform {
|
| static const char* GetResolvedExecutableName() {
|
| if (resolved_executable_name_ == NULL) {
|
| // Try to resolve the executable path using platform specific APIs.
|
| - resolved_executable_name_ = Platform::ResolveExecutablePath();
|
| + resolved_executable_name_ = strdup(Platform::ResolveExecutablePath());
|
| }
|
| return resolved_executable_name_;
|
| }
|
| @@ -71,7 +71,7 @@ class Platform {
|
| // The path to the executable.
|
| static const char* executable_name_;
|
| // The path to the resolved executable.
|
| - static const char* resolved_executable_name_;
|
| + static char* resolved_executable_name_;
|
|
|
| static int script_index_;
|
| static char** argv_; // VM flags are argv_[1 ... script_index_ - 1]
|
|
|