mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8234339: replace JLI_StrTok in java_md_solinux.c
Reviewed-by: clanger, rriggs
This commit is contained in:
parent
b240008ba2
commit
70c5d41f28
2 changed files with 2 additions and 2 deletions
|
@ -188,6 +188,7 @@ ContainsLibJVM(const char *env) {
|
|||
char serverPattern[] = "lib/server";
|
||||
char *envpath;
|
||||
char *path;
|
||||
char* save_ptr = NULL;
|
||||
jboolean clientPatternFound;
|
||||
jboolean serverPatternFound;
|
||||
|
||||
|
@ -207,7 +208,7 @@ ContainsLibJVM(const char *env) {
|
|||
* we have a suspicious path component, check if it contains a libjvm.so
|
||||
*/
|
||||
envpath = JLI_StringDup(env);
|
||||
for (path = JLI_StrTok(envpath, ":"); path != NULL; path = JLI_StrTok(NULL, ":")) {
|
||||
for (path = strtok_r(envpath, ":", &save_ptr); path != NULL; path = strtok_r(NULL, ":", &save_ptr)) {
|
||||
if (clientPatternFound && JLI_StrStr(path, clientPattern) != NULL) {
|
||||
if (JvmExists(path)) {
|
||||
JLI_MemFree(envpath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue