changeset 20061 | cf6e850c26db |
parent 18073 | f02460441ddc |
child 27880 | afb974a04396 |
--- a/hotspot/src/share/vm/services/diagnosticArgument.cpp Thu Sep 19 11:04:23 2013 -0400 +++ b/hotspot/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) {