Fix bug in printing switchover/failover module command info

The string constant passed to the register-function went invalid
once CREATE_MODULE() completed, causing random characters to be
printed.
This commit is contained in:
Esa Korhonen 2018-01-17 12:01:00 +02:00
parent ae949881a9
commit a4f6176ced

View File

@ -665,7 +665,7 @@ extern "C"
MXS_MODULE* MXS_CREATE_MODULE()
{
MXS_NOTICE("Initialise the MySQL Monitor module.");
const char ARG_MONITOR_DESC[] = "MySQL Monitor name (from configuration file)";
static const char ARG_MONITOR_DESC[] = "MySQL Monitor name (from configuration file)";
static modulecmd_arg_type_t switchover_argv[] =
{
{