changeset 5433:1b03bed31241

7196151: ParserTest SEGv on solaris Reviewed-by: sla, coleenp, ctornqvi, dsamersoff
author allwin
date Tue, 17 Sep 2013 17:16:28 +0200
parents 9ed97b511b26
children e5a25e4ae509
files src/share/vm/services/diagnosticArgument.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/services/diagnosticArgument.cpp	Thu Sep 19 11:04:23 2013 -0400
+++ b/src/share/vm/services/diagnosticArgument.cpp	Tue Sep 17 17:16:28 2013 +0200
@@ -61,7 +61,7 @@
 }
 
 void GenDCmdArgument::to_string(char* c, char* buf, size_t len) {
-  jio_snprintf(buf, len, "%s", c);
+  jio_snprintf(buf, len, "%s", (c != NULL) ? c : "");
 }
 
 void GenDCmdArgument::to_string(StringArrayArgument* f, char* buf, size_t len) {