7196151: ParserTest SEGv on solaris

Reviewed-by: sla, coleenp, ctornqvi, dsamersoff
This commit is contained in:
Peter Allwin 2013-09-17 17:16:28 +02:00
parent a1f3a95880
commit 86d8a77b06

View File

@ -61,7 +61,7 @@ void GenDCmdArgument::to_string(MemorySizeArgument m, char* buf, size_t len) {
}
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) {