Fix runtime config error generation
The error string was passed as the format string.
This commit is contained in:
@ -2016,9 +2016,9 @@ json_t* runtime_get_json_error()
|
|||||||
json_t* obj = NULL;
|
json_t* obj = NULL;
|
||||||
std::string errmsg = runtime_get_error();
|
std::string errmsg = runtime_get_error();
|
||||||
|
|
||||||
if (errmsg.length())
|
if (!errmsg.empty())
|
||||||
{
|
{
|
||||||
obj = mxs_json_error(errmsg.c_str());
|
obj = mxs_json_error("%s", errmsg.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
|
|||||||
Reference in New Issue
Block a user