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:
Markus Mäkelä
2017-09-14 09:14:50 +03:00
parent 52da6c0214
commit 36ec6e443e

View File

@ -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) TestOutput::TestOutput(const std::string& input, const std::string& name)
{ {
json_error_t err; 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) if (js)
{ {