Skip to content

Commit

Permalink
json: handle kCharStar consistently with JSROOT I/O part
Browse files Browse the repository at this point in the history
In binary buffer there is no difference between 0 (null pointer) and
empty string "". Decide to use empty string "" when reading binary.
Therefore TBufferJSON also will produce empty string in both cases

Signed-off-by: Sergey Linev <[email protected]>
  • Loading branch information
linev authored and pcanal committed Nov 7, 2016
1 parent 426e239 commit 61ed54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/io/src/TBufferJSON.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3079,7 +3079,7 @@ void TBufferJSON::JsonWriteConstChar(const char* value, Int_t len)
{
if (value==0) {

fValue.Append("null");
fValue.Append("\"\"");

} else {

Expand Down

0 comments on commit 61ed54c

Please sign in to comment.