7196151: ParserTest SEGv on solaris

Tue, 17 Sep 2013 17:16:28 +0200

author
allwin
date
Tue, 17 Sep 2013 17:16:28 +0200
changeset 5751
1b03bed31241
parent 5748
9ed97b511b26
child 5752
e5a25e4ae509

7196151: ParserTest SEGv on solaris
Reviewed-by: sla, coleenp, ctornqvi, dsamersoff

src/share/vm/services/diagnosticArgument.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/services/diagnosticArgument.cpp	Thu Sep 19 11:04:23 2013 -0400
     1.2 +++ b/src/share/vm/services/diagnosticArgument.cpp	Tue Sep 17 17:16:28 2013 +0200
     1.3 @@ -61,7 +61,7 @@
     1.4  }
     1.5  
     1.6  void GenDCmdArgument::to_string(char* c, char* buf, size_t len) {
     1.7 -  jio_snprintf(buf, len, "%s", c);
     1.8 +  jio_snprintf(buf, len, "%s", (c != NULL) ? c : "");
     1.9  }
    1.10  
    1.11  void GenDCmdArgument::to_string(StringArrayArgument* f, char* buf, size_t len) {

mercurial