changeset 12286:df03413ad1a9

Merge
author coleenp
date Sat, 21 Sep 2013 01:45:29 +0200
parents e5a25e4ae509 (diff) 7c29904fdfa2 (current diff)
children a7609ec351d6
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/services/diagnosticArgument.cpp	Fri Sep 20 18:34:00 2013 -0400
+++ b/src/share/vm/services/diagnosticArgument.cpp	Sat Sep 21 01:45:29 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) {