diff options
-rw-r--r-- | features/org.eclipse.equinox.executable.feature/library/eclipse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/eclipse.c b/features/org.eclipse.equinox.executable.feature/library/eclipse.c index 27e2e2faa..d65cfb2fc 100644 --- a/features/org.eclipse.equinox.executable.feature/library/eclipse.c +++ b/features/org.eclipse.equinox.executable.feature/library/eclipse.c @@ -1042,7 +1042,7 @@ static void adjustVMArgs(_TCHAR *javaVM, _TCHAR *jniLib, _TCHAR **vmArgv[]) { if (!isModularVM(javaVM, jniLib)) { while ((*vmArgv)[i] != NULL) { if (_tcsncmp((*vmArgv)[i], ADDMODULES, _tcslen(ADDMODULES)) == 0) { - int j = 0; + int j = 0, k = 0; if ((_tcschr((*vmArgv)[i], '=') != NULL) && ((*vmArgv)[i][13] == '=')) { /* --add-modules=<value> */ @@ -1057,7 +1057,7 @@ static void adjustVMArgs(_TCHAR *javaVM, _TCHAR *jniLib, _TCHAR **vmArgv[]) { } /* shift all remaining arguments, but keep i, so that we can find repeated occurrences of --add-modules */ - int k = i; + k = i; (*vmArgv)[k] = (*vmArgv)[j]; while ((*vmArgv)[j] != NULL) { (*vmArgv)[++k] = (*vmArgv)[++j]; |