Fix runtime config error generation

The error string was passed as the format string.
This commit is contained in:
Markus Mäkelä 2019-03-21 11:23:53 +02:00
parent 9236ace077
commit 3448a36b68
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -2016,9 +2016,9 @@ json_t* runtime_get_json_error()
json_t* obj = NULL;
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;