Skip to content

Commit 1bb5d4e

Browse files
committed
align types correctly on platformlauncher.cpp.
1 parent 4aa28b2 commit 1bb5d4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platformlauncher.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ bool PlatformLauncher::checkJDKHome() {
218218

219219
if (jdkhome.empty()) {
220220
logMsg("-Xjdkhome is not set, checking for %%JAVA_HOME%%...");
221-
char *javaHome = getenv("JAVA_HOME");
222-
if (javaHome) {
223-
javaHome = trimTrailingBackslashes(javaHome);
221+
char *origJavaHome = getenv("JAVA_HOME");
222+
if (origJavaHome) {
223+
const char *javaHome = trimTrailingBackslashes(origJavaHome).c_str();
224224
logMsg("%%JAVA_HOME%% is set: %s", javaHome);
225225
if (!jvmLauncher.initialize(javaHome)) {
226226
logMsg("ERROR: Cannot locate java installation, specified by JAVA_HOME: %s", javaHome);

0 commit comments

Comments
 (0)