diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-08-25 11:46:31 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-08-25 11:46:31 +0400 |
commit | 27444871a8f30e49fd8f52acdade55e723cacae6 (patch) | |
tree | 6fc17ca0fe04ee905d71cee5105a05c70a5453e4 /sql/opt_range.cc | |
parent | c18110bd52770eec7427ca4ef5174118a9db0872 (diff) | |
download | mariadb-git-27444871a8f30e49fd8f52acdade55e723cacae6.tar.gz |
UNINIT_VAR() fixes
Restored self-initialization version of UNINIT_VAR() for all gcc versions.
Fixed UNINIT_VAR() usage: it is supposed to be used along with declaration.
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 8e9a0cbd445..0522e0f21a0 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -2933,8 +2933,7 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item **cond) } if (i) { - double selectivity_mult; - UNINIT_VAR(selectivity_mult); + double UNINIT_VAR(selectivity_mult); /* There is at least 1-column prefix of columns whose selectivity has |