diff --git a/Makefile b/Makefile index 9f3632308..045457ef0 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ DEBUG=${ALL_DEBUG} #export DEBUG #export OPTZ #export EXTRALINK -CURVER=1.1.1 +CURVER=1.1.2 .PHONY: default default: build_deps build_lib build_src diff --git a/include/proxysql.h b/include/proxysql.h index e2f12be86..f59750b82 100644 --- a/include/proxysql.h +++ b/include/proxysql.h @@ -87,7 +87,7 @@ #else #define DEB "" #endif /* DEBUG */ -#define PROXYSQL_VERSION "1.1.1.beta7" DEB +#define PROXYSQL_VERSION "1.1.2" DEB #define PROXYSQL_CODENAME "Kleon" #ifndef PROXYSQL_FUNC_DEFS diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 4699a013a..144a7d6e0 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -2546,7 +2546,7 @@ char **ProxySQL_Admin::get_variables_list() { // Returns true if the given name is the name of an existing admin variable bool ProxySQL_Admin::has_variable(const char *name) { size_t no_vars = sizeof(admin_variables_names) / sizeof(char *); - for (unsigned int i = 0; i < no_vars, admin_variables_names[i] != NULL; ++i) { + for (unsigned int i = 0; i < no_vars ; ++i) { size_t var_len = strlen(admin_variables_names[i]); if (strlen(name) == var_len && !strncmp(name, admin_variables_names[i], var_len)) { return true;