From a4f6176ced2865df2c3b2417fc696105bc582625 Mon Sep 17 00:00:00 2001 From: Esa Korhonen Date: Wed, 17 Jan 2018 12:01:00 +0200 Subject: [PATCH] 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. --- server/modules/monitor/mariadbmon/mysql_mon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/monitor/mariadbmon/mysql_mon.cc b/server/modules/monitor/mariadbmon/mysql_mon.cc index df32155f7..fce6c59e7 100644 --- a/server/modules/monitor/mariadbmon/mysql_mon.cc +++ b/server/modules/monitor/mariadbmon/mysql_mon.cc @@ -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[] = { {