Skip to content

Commit 865d99f

Browse files
committed
8340596: Remove dead code from RequiresSetenv function in java.base/unix/native/libjli/java_md.c
Reviewed-by: dholmes
1 parent 3411f9d commit 865d99f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/java.base/unix/native/libjli/java_md.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ static jboolean
211211
RequiresSetenv(const char *jvmpath) {
212212
char jpath[PATH_MAX + 1];
213213
char *llp;
214-
char *dmllp = NULL;
215214
char *p; /* a utility pointer */
216215

217216
#ifdef MUSL_LIBC
@@ -229,7 +228,7 @@ RequiresSetenv(const char *jvmpath) {
229228

230229
llp = getenv("LD_LIBRARY_PATH");
231230
/* no environment variable is a good environment variable */
232-
if (llp == NULL && dmllp == NULL) {
231+
if (llp == NULL) {
233232
return JNI_FALSE;
234233
}
235234
#ifdef __linux
@@ -268,9 +267,6 @@ RequiresSetenv(const char *jvmpath) {
268267
if (llp != NULL && ContainsLibJVM(llp)) {
269268
return JNI_TRUE;
270269
}
271-
if (dmllp != NULL && ContainsLibJVM(dmllp)) {
272-
return JNI_TRUE;
273-
}
274270
return JNI_FALSE;
275271
}
276272
#endif /* SETENV_REQUIRED */

0 commit comments

Comments
 (0)