src/hotspot/os/windows/os_windows.cpp
changeset 58282 03fce7b04b42
parent 58196 cea6839598e8
child 58426 ed5e399d967d
--- a/src/hotspot/os/windows/os_windows.cpp	Mon Sep 23 17:02:08 2019 +0200
+++ b/src/hotspot/os/windows/os_windows.cpp	Tue Sep 24 03:28:42 2019 -0400
@@ -224,18 +224,12 @@
     }
 
     home_path = NEW_C_HEAP_ARRAY(char, strlen(home_dir) + 1, mtInternal);
-    if (home_path == NULL) {
-      return;
-    }
     strcpy(home_path, home_dir);
     Arguments::set_java_home(home_path);
     FREE_C_HEAP_ARRAY(char, home_path);
 
     dll_path = NEW_C_HEAP_ARRAY(char, strlen(home_dir) + strlen(bin) + 1,
                                 mtInternal);
-    if (dll_path == NULL) {
-      return;
-    }
     strcpy(dll_path, home_dir);
     strcat(dll_path, bin);
     Arguments::set_dll_dir(dll_path);