MXS-1413: Use JSON_ALLOW_NUL when loading JSON
The cdc_result.cpp uses json_loads to extract the JSON and JSON_ALLOW_NUL needs to be added to allow null unicode characters to be extracted.
This commit is contained in:
parent
52da6c0214
commit
36ec6e443e
@ -21,7 +21,7 @@ TestInput::TestInput(const std::string& value, const std::string& type, const st
|
||||
TestOutput::TestOutput(const std::string& input, const std::string& name)
|
||||
{
|
||||
json_error_t err;
|
||||
json_t *js = json_loads(input.c_str(), 0, &err);
|
||||
json_t *js = json_loads(input.c_str(), JSON_ALLOW_NUL, &err);
|
||||
|
||||
if (js)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user