diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-02-10 14:05:49 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-03-16 14:48:22 +0400 |
commit | 18e9c314e43271debf58f3c3e5bf454eab655799 (patch) | |
tree | cd2ff9ea71622f048b609873f4024eabfa965d3d /client/mysqltest.cc | |
parent | 10554ca6cbb6a02098b0cc1a55fb5426164ef348 (diff) | |
download | mariadb-git-18e9c314e43271debf58f3c3e5bf454eab655799.tar.gz |
MDEV-6650 - LINT_INIT emits code in non-debug builds
Replaced all references to LINT_INIT with UNINIT_VAR and LINT_INIT_STRUCT.
Removed LINT_INIT macro.
Diffstat (limited to 'client/mysqltest.cc')
-rw-r--r-- | client/mysqltest.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc index 5118b024078..5a54c67684b 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -2617,12 +2617,11 @@ void var_query_set(VAR *var, const char *query, const char** query_end) { char *end = (char*)((query_end && *query_end) ? *query_end : query + strlen(query)); - MYSQL_RES *res; + MYSQL_RES *UNINIT_VAR(res); MYSQL_ROW row; MYSQL* mysql = cur_con->mysql; DYNAMIC_STRING ds_query; DBUG_ENTER("var_query_set"); - LINT_INIT(res); if (!mysql) { @@ -2801,7 +2800,7 @@ void var_set_query_get_value(struct st_command *command, VAR *var) { long row_no; int col_no= -1; - MYSQL_RES* res; + MYSQL_RES* UNINIT_VAR(res); MYSQL* mysql= cur_con->mysql; static DYNAMIC_STRING ds_query; @@ -2814,7 +2813,6 @@ void var_set_query_get_value(struct st_command *command, VAR *var) }; DBUG_ENTER("var_set_query_get_value"); - LINT_INIT(res); if (!mysql) { |