diff src/share/vm/prims/jvmtiTrace.cpp @ 370:885fe0f95828

6744783: HotSpot segfaults if given -XX options with an empty string argument Reviewed-by: kamg, kvn Contributed-by: volker.simonis@gmail.com
author never
date Thu, 25 Sep 2008 12:50:51 -0700
parents a61af66fc99e
children ad8c8ca4ab0f
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiTrace.cpp	Wed Sep 24 15:56:36 2008 -0700
+++ b/src/share/vm/prims/jvmtiTrace.cpp	Thu Sep 25 12:50:51 2008 -0700
@@ -73,7 +73,7 @@
 
   const char *very_end;
   const char *curr;
-  if (strlen(TraceJVMTI)) {
+  if (TraceJVMTI != NULL) {
     curr = TraceJVMTI;
   } else {
     curr = "";  // hack in fixed tracing here